Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { IsEnabled() bool Validate(ctx context.Context, token string) (context.Context, bool) }
Authenticator will process runtime authentication.
func NewTokenAuthenticator ¶
func NewTokenAuthenticator(enabled bool, tokens []string) Authenticator
NewTokenAuthenticator will return an authenticator that will validate using a whitelisted set of tokens.
Click to show internal directories.
Click to hide internal directories.