Files
dokku-ui/internal/server/auth/none.go
2023-04-25 14:33:14 +08:00

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
}