Documentation ¶
Index ¶
Constants ¶
View Source
const JWTToken = "jwtToken"
JWTToken constant
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
func (*Config) FreeIPA ¶
FreeIPA function sets the Config struct in order to enable FreeIPA authentication
type Role ¶
type Role struct { AccessToken string Datacenters []string Fallback bool Members []string Methods Methods Name string Readonly bool 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.