- func WithAudiences(ctx context.Context, auds Audiences) context.Context
- type Audiences
- type Request
- type RequestFunc
- type Response
- type Token
- type TokenFunc
type Audiences string
Audiences is a container for the Audiences of a token.
func AudiencesFrom ¶
AudiencesFrom returns a request's expected audiences stored in the request context.
Has checks if Audiences contains a specific audiences.
Request attempts to extract authentication information from a request and returns a Response or an error if the request could not be checked.
type RequestFunc ¶
RequestFunc is a function that implements the Request interface.
Response is the struct returned by authenticator interfaces upon successful authentication. It contains information about whether the authenticator authenticated the request, information about the context of the authentication, and information about the authenticated user.
Token checks a string value against a backing authentication store and returns a Response or an error if the token could not be checked.
TokenFunc is a function that implements the Token interface.