15 lines
352 B
Go
15 lines
352 B
Go
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
|
|
}
|