init from gitlab

This commit is contained in:
texm
2023-04-25 14:33:14 +08:00
parent 6a85a41ff0
commit c8202a5c82
281 changed files with 19861 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
package auth
type NoneAuthenticator struct {
baseAuthenticator
}
func NewNoneAuthenticator(cfg Config) (*NoneAuthenticator, error) {
noneAuth := &NoneAuthenticator{}
noneAuth.signingKey = cfg.SigningKey
noneAuth.tokenLifetime = cfg.TokenLifetime
noneAuth.cookieDomain = cfg.CookieDomain
noneAuth.authMethod = MethodNone
return noneAuth, nil
}