Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRoles ¶
func CheckRoles(roles []string) gin.HandlerFunc
func GetJwtMiddleware ¶
func GetJwtMiddleware() gin.HandlerFunc
Types ¶
type CustomClaims ¶
type CustomClaims struct { Roles []string `json:"https://nistagram/roles"` jwt.StandardClaims }
type JSONWebKeys ¶
type Jwks ¶
type Jwks struct {
Keys []JSONWebKeys `json:"keys"`
}
Click to show internal directories.
Click to hide internal directories.