Versions in this module Expand all Collapse all v0 v0.0.310 Jun 15, 2022 Changes in this version + var AccountIsNotActiveError = fmt.Errorf("account is not active") + var IncorrectPasswordError = fmt.Errorf("incorrect password") + var RateLimitExceededError = fmt.Errorf("auth rate limit exceeded") + func PasswordVerify(encryptedPassword, password string) error + type LoginRecorder interface + RecordLogin func(username string, loginType iamv1alpha2.LoginType, provider string, ...) error + func NewLoginRecorder(ksClient kubesphere.Interface, userLister iamv1alpha2listers.UserLister) LoginRecorder + type OAuthAuthenticator interface + Authenticate func(provider, code string) (authuser.Info, string, error) + func NewOAuthAuthenticator(ksClient kubesphere.Interface, ksInformer informers.SharedInformerFactory, ...) OAuthAuthenticator + type PasswordAuthenticator interface + Authenticate func(username, password string) (authuser.Info, string, error) + func NewPasswordAuthenticator(ksClient kubesphere.Interface, userLister iamv1alpha2listers.UserLister, ...) PasswordAuthenticator + type TokenManagementInterface interface + IssueTo func(user user.Info) (*oauth.Token, error) + RevokeAllUserTokens func(username string) error + Verify func(token string) (user.Info, error) + func NewTokenOperator(cache cache.Interface, options *authoptions.AuthenticationOptions) TokenManagementInterface