Documentation
¶
Index ¶
- Constants
- func NewBootstrapAuthenticator(tokens oauthclient.OAuthAccessTokenInterface, ...) kauthenticator.Token
- func NewTokenAuthenticator(tokens oauthclient.OAuthAccessTokenInterface, users userclient.UserInterface, ...) kauthenticator.Token
- type NoopGroupMapper
- type OAuthTokenValidator
- type OAuthTokenValidatorFunc
- type OAuthTokenValidators
- type TimeoutValidator
- type UserToGroupMapper
Constants ¶
View Source
const ClusterAdminGroup = "system:cluster-admins"
Variables ¶
This section is empty.
Functions ¶
func NewBootstrapAuthenticator ¶
func NewBootstrapAuthenticator(tokens oauthclient.OAuthAccessTokenInterface, getter bootstrap.BootstrapUserDataGetter, implicitAudiences kauthenticator.Audiences, validators ...OAuthTokenValidator) kauthenticator.Token
func NewTokenAuthenticator ¶
func NewTokenAuthenticator(tokens oauthclient.OAuthAccessTokenInterface, users userclient.UserInterface, groupMapper UserToGroupMapper, implicitAuds kauthenticator.Audiences, validators ...OAuthTokenValidator) kauthenticator.Token
Types ¶
type NoopGroupMapper ¶
type NoopGroupMapper struct{}
type OAuthTokenValidator ¶
type OAuthTokenValidator interface {
Validate(token *oauthv1.OAuthAccessToken, user *userv1.User) error
}
func NewExpirationValidator ¶
func NewExpirationValidator() OAuthTokenValidator
func NewUIDValidator ¶
func NewUIDValidator() OAuthTokenValidator
type OAuthTokenValidatorFunc ¶
type OAuthTokenValidatorFunc func(token *oauthv1.OAuthAccessToken, user *userv1.User) error
func (OAuthTokenValidatorFunc) Validate ¶
func (f OAuthTokenValidatorFunc) Validate(token *oauthv1.OAuthAccessToken, user *userv1.User) error
type OAuthTokenValidators ¶
type OAuthTokenValidators []OAuthTokenValidator
func (OAuthTokenValidators) Validate ¶
func (v OAuthTokenValidators) Validate(token *oauthv1.OAuthAccessToken, user *userv1.User) error
type TimeoutValidator ¶
type TimeoutValidator struct {
// contains filtered or unexported fields
}
func NewTimeoutValidator ¶
func NewTimeoutValidator(tokens oauthclient.OAuthAccessTokenInterface, oauthClients oauthclientlister.OAuthClientLister, defaultTimeout time.Duration, minValidTimeout int32) *TimeoutValidator
func (*TimeoutValidator) Run ¶
func (a *TimeoutValidator) Run(stopCh <-chan struct{})
func (*TimeoutValidator) Validate ¶
func (a *TimeoutValidator) Validate(token *oauthv1.OAuthAccessToken, _ *userv1.User) error
Validate is called with a token when it is seen by an authenticator it touches only the tokenChannel so it is safe to call from other threads
Source Files
¶
Click to show internal directories.
Click to hide internal directories.