Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FlixCultJwtConfig = middleware.JWTConfig{ SigningKey: SigningKey, SigningMethod: middleware.AlgorithmHS256, AuthScheme: "Bearer", Skipper: SkipJWTAuthentication, }
FlixCultJwtConfig -
View Source
var SigningKey = []byte("awakes") // need to get this from an .env file
SigningKey -
Functions ¶
func BasicAuthenticate ¶
BasicAuthenticate - returns (authenticationStatus, admin)
func GenerateJWT ¶
GenerateJWT - Generates a JWT token using
func SkipJWTAuthentication ¶
SkipJWTAuthentication - Skipper function to skip JWT Auth
Types ¶
type Credential ¶
Credential - Struct to take hold username/password
Click to show internal directories.
Click to hide internal directories.