Versions in this module Expand all Collapse all v1 v1.6.391 Jul 2, 2024 Changes in this version + func CORS(cp []CORSPolicy) gin.HandlerFunc + func CheckOrigin() gin.HandlerFunc + func ConvertContext(thing interface{}) pongo2.Context + func Firewall(listType string, ipList string) gin.HandlerFunc + func GetJWT(customClaims MyCustomClaims, tokenType string) (string, string, error) + func JWT() gin.HandlerFunc + func Pongo2(baseDirectory string) gin.HandlerFunc + func RateLimit(limiterInstance *limiter.Limiter) gin.HandlerFunc + func RefreshJWT() gin.HandlerFunc + func SentryCapture(sentryDsn string, v ...string) gin.HandlerFunc + func StringFromContext(c *gin.Context, input string) string + func TwoFA(keywordOn, keywordOff, keywordVerified string) gin.HandlerFunc + func ValidateAccessJWT(token *jwt.Token) (interface{}, error) + func ValidateECDSA(token *jwt.Token) (interface{}, error) + func ValidateHMACAccess(token *jwt.Token) (interface{}, error) + func ValidateHMACRefresh(token *jwt.Token) (interface{}, error) + func ValidateRSA(token *jwt.Token) (interface{}, error) + func ValidateRefreshJWT(token *jwt.Token) (interface{}, error) + type CORSPolicy struct + Key string + Value string + type JWTClaims struct + type JWTParameters struct + AccNbf int + AccessKey []byte + AccessKeyTTL int + Algorithm string + Audience string + Issuer string + PrivKeyECDSA *ecdsa.PrivateKey + PrivKeyRSA *rsa.PrivateKey + PubKeyECDSA *ecdsa.PublicKey + PubKeyRSA *rsa.PublicKey + RefNbf int + RefreshKey []byte + RefreshKeyTTL int + Subject string + var JWTParams JWTParameters + type JWTPayload struct + AccessJWT string + RecoveryKey string + RefreshJWT string + TwoAuth string + type MyCustomClaims struct + AuthID uint64 + Custom1 string + Custom2 string + Email string + Role string + Scope string + SiteLan string + TwoFA string