Versions in this module Expand all Collapse all v3 v3.1.1 Dec 30, 2020 Changes in this version + var AuthFailedAccountIsNotActive = fmt.Errorf("account is not active") + var AuthFailedIdentityMappingNotMatch = fmt.Errorf("identity mapping not match") + var AuthFailedIncorrectPassword = fmt.Errorf("incorrect password") + var AuthRateLimitExceeded = fmt.Errorf("auth rate limit exceeded") + type IdentityManagementInterface interface + CreateUser func(user *iamv1alpha2.User) (*iamv1alpha2.User, error) + DeleteUser func(username string) error + DescribeUser func(username string) (*iamv1alpha2.User, error) + ListLoginRecords func(query *query.Query) (*api.ListResult, error) + ListUsers func(query *query.Query) (*api.ListResult, error) + ModifyPassword func(username string, password string) error + PasswordVerify func(username string, password string) error + UpdateUser func(user *iamv1alpha2.User) (*iamv1alpha2.User, error) + func NewOperator(ksClient kubesphere.Interface, factory informers.InformerFactory, ...) IdentityManagementInterface + type LoginRecorder interface + RecordLogin func(username string, loginType iamv1alpha2.LoginType, provider string, ...) error + func NewLoginRecorder(ksClient kubesphere.Interface) LoginRecorder + type PasswordAuthenticator interface + Authenticate func(username, password string) (authuser.Info, error) + func NewPasswordAuthenticator(ksClient kubesphere.Interface, userLister iamv1alpha2listers.UserLister, ...) PasswordAuthenticator + type TokenManagementInterface interface + IssueTo func(user user.Info) (*oauth.Token, error) + Verify func(token string) (user.Info, error) + func NewTokenOperator(cache cache.Interface, options *authoptions.AuthenticationOptions) TokenManagementInterface Other modules containing this package github.com/fearlesschenc/kubesphere