Documentation
¶
Index ¶
Constants ¶
View Source
const (
ContextJwtClaims = "jwtClaims"
)
View Source
const (
DefaultTokenAuthHeader = "X-API-Key"
)
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(auth Provider) gin.HandlerFunc
Types ¶
type Provider ¶
func NewAuthJWT ¶ added in v0.5.0
func NewAuthJWT(p jwtprovider.JWTParser) Provider
func NewAuthToken ¶ added in v0.3.1
Click to show internal directories.
Click to hide internal directories.