# Functions
GetRequestTokens retrieves tokens from the request headers and/or cookies Mobile Clients/Secure Servers: Access tokens must be provided as a Bearer token
in the "Authorization" header
Web Clients: Access tokens must be provided in the "rokwire-access-token" cookie
and CSRF tokens must be provided in the "CSRF" header.
NewAuthenticatedHandler creates a new AuthenticatedHandler.
NewHandlers creates new token auth handlers.
NewPermissionsHandler creates a new PermissionsHandler.
NewScopeHandler creates a new StandardHandler that checks scopes.
NewStandardHandler creates a new StandardHandler.
NewTokenAuth creates and configures a new TokenAuth instance authorization maybe nil if performing manual authorization.
NewUserHandler creates a new UserHandler.
# Constants
AudRokwire represents the ROKWIRE audience.
# Structs
AuthenticatedHandler entity This enforces that the token was the result of direct user authentication.
Claims represents the standard claims included in access tokens.
Handlers represents the standard token auth handlers.
PermissionsHandler entity This enforces that the token has permissions matching the policy.
StandardHandler entity This enforces that the token is valid.
TokenAuth contains configurations and helper functions required to validate tokens.
UserHandler entity This enforces that the token is not anonymous.
# Interfaces
Handler is an interface for token auth handlers.