Versions in this module Expand all Collapse all v1 v1.0.4 Mar 10, 2022 v1.0.3 Mar 9, 2022 Changes in this version + const AuthenticateHeader + const AuthorizationHeader + const ContextToken + const ForwardSlash + const HEADER + const IssuerFieldName + var AuthHeaderEmptyError = errors.New("auth header empty") + var Error *log.Logger + var Info *log.Logger + var InvalidAuthHeaderError = errors.New("invalid auth header") + var Trace *log.Logger + var Warning *log.Logger + type AuthError struct + Code int + Message string + type AuthMiddleware struct + Iss string + JWK map[string]JWKKey + Realm string + Region string + TimeFunc func() time.Time + Timeout time.Duration + TokenLookup string + Unauthorized func(*gin.Context, int, string) + UserPoolID string + VerifyIssuer bool + func AuthJWTMiddleware(userPoolID, region string) (*AuthMiddleware, error) + func (mw *AuthMiddleware) MiddlewareFunc() gin.HandlerFunc + func (mw *AuthMiddleware) MiddlewareInit() + type JWK struct + Keys []JWKKey + type JWKKey struct + Alg string + E string + Kid string + Kty string + N string + Use string