authentication

package
v5.10.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

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

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

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL