Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationOptions ¶
type AuthenticationOptions struct { // AuthenticateRateLimiter defines under which circumstances we will block user. // A user will be blocked if his/her failed login attempt reaches AuthenticateRateLimiterMaxTries in // AuthenticateRateLimiterDuration for about AuthenticateRateLimiterDuration. For example, // AuthenticateRateLimiterMaxTries: 5 // AuthenticateRateLimiterDuration: 10m // A user will be blocked for 10m if he/she logins with incorrect credentials for at least 5 times in 10m. AuthenticateRateLimiterMaxTries int `json:"authenticateRateLimiterMaxTries" yaml:"authenticateRateLimiterMaxTries"` AuthenticateRateLimiterDuration time.Duration `json:"authenticateRateLimiterDuration" yaml:"authenticateRateLimiterDuration"` // Token verification maximum time difference MaximumClockSkew time.Duration `json:"maximumClockSkew" yaml:"maximumClockSkew"` // retention login history, records beyond this amount will be deleted LoginHistoryRetentionPeriod time.Duration `json:"loginHistoryRetentionPeriod" yaml:"loginHistoryRetentionPeriod"` // retention login history, records beyond this amount will be deleted // LoginHistoryMaximumEntries restricts for all kubesphere accounts and must be greater than AuthenticateRateLimiterMaxTries LoginHistoryMaximumEntries int `json:"loginHistoryMaximumEntries" yaml:"loginHistoryMaximumEntries"` // allow multiple users login from different location at the same time MultipleLogin bool `json:"multipleLogin" yaml:"multipleLogin"` // secret to sign jwt token JwtSecret string `json:"-" yaml:"jwtSecret"` // OAuthOptions defines options needed for integrated oauth plugins OAuthOptions *oauth.Options `json:"oauthOptions" yaml:"oauthOptions"` // KubectlImage is the image address we use to create kubectl pod for users who have admin access to the cluster. KubectlImage string `json:"kubectlImage" yaml:"kubectlImage"` }
func NewAuthenticateOptions ¶
func NewAuthenticateOptions() *AuthenticationOptions
func (*AuthenticationOptions) AddFlags ¶
func (options *AuthenticationOptions) AddFlags(fs *pflag.FlagSet, s *AuthenticationOptions)
func (*AuthenticationOptions) Validate ¶
func (options *AuthenticationOptions) Validate() []error
Click to show internal directories.
Click to hide internal directories.