Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Roles contains the roles for the active auth driver Roles []Role )
Functions ¶
func GetJWTFromContext ¶
GetJWTFromContext retrieves the JWT Token from the request
Types ¶
type Config ¶
Config contains the authentication configuration
func (*Config) Authenticate ¶
Authenticate calls the proper handler based on whether authentication is enabled or not
type Role ¶
type Role struct { AccessToken string Datacenters []string Fallback bool Members []string Name string Readonly bool Scope Scope Subscriptions []string }
Role contains the attributes of a role
type TokenLocation ¶
TokenLocation represents a function that accepts a request as input and returns either a token or an error.
Click to show internal directories.
Click to hide internal directories.