Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JwtMiddleware = jwtmiddleware.New(jwtmiddleware.Options{ ValidationKeyGetter: ValidateToken, SigningMethod: jwt.SigningMethodRS256, })
Functions ¶
func ValidateToken ¶
func ValidateToken(token *jwt.Token) (interface{}, error)
Types ¶
type JSONWebKeys ¶
type Jwks ¶
type Jwks struct {
Keys []JSONWebKeys `json:"keys"`
}
Click to show internal directories.
Click to hide internal directories.