Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderHMACHash = "X-HMAC-Hash" HeaderHMACTimestamp = "X-HMAC-Timestamp" HeaderHMACNonce = "X-HMAC-Nonce" AuthFlag = "Authenticated" AuthTimestamp = "AuthTimestamp" AuthNonce = "AuthNonce" )
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 HMACAuth ¶ added in v0.5.1
func HMACAuth(provider *hmacprovider.HMACProvider) 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.