init from gitlab
This commit is contained in:
14
internal/server/auth/none.go
Normal file
14
internal/server/auth/none.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user