Documentation ¶
Index ¶
- type Authenticator
- func (a *Authenticator) AddProvider(provider corev2.AuthProvider)
- func (a *Authenticator) Authenticate(ctx context.Context, username, password string) (*corev2.Claims, error)
- func (a *Authenticator) Providers() map[string]corev2.AuthProvider
- func (a *Authenticator) Refresh(ctx context.Context, claims corev2.AuthProviderClaims) (*corev2.Claims, error)
- func (a *Authenticator) RemoveProvider(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator contains the list of authentication providers
func (*Authenticator) AddProvider ¶
func (a *Authenticator) AddProvider(provider corev2.AuthProvider)
AddProvider adds a provided provider to the list of configured providers
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate(ctx context.Context, username, password string) (*corev2.Claims, error)
Authenticate with the configured authentication providers
func (*Authenticator) Providers ¶
func (a *Authenticator) Providers() map[string]corev2.AuthProvider
Providers returns the configured providers
func (*Authenticator) Refresh ¶
func (a *Authenticator) Refresh(ctx context.Context, claims corev2.AuthProviderClaims) (*corev2.Claims, error)
Refresh is called when a new access token is requested with a refresh token. The provider should attempt to update the user identity to reflect any changes since the access token was last refreshed
func (*Authenticator) RemoveProvider ¶
func (a *Authenticator) RemoveProvider(name string) error
RemoveProvider removes the provider with the given name from the list of configued providers
Click to show internal directories.
Click to hide internal directories.