We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using JWT, where am I suppose to validate claims like jti and other custom claims?
jti
type customClaims struct { Foo string `json:"foo"` jwt.StandardClaims } func (c *customClaims) Valid() error { err := c.StandardClaims.Valid() if err != nil { return err } return nil } func customClaimsFactory() jwt.Claims { return &customClaims{} } endpoint = kitjwt.NewParser( func(token *jwt.Token) (interface{}, error) { return []byte("mystring"), nil }, jwt.SigningMethodHS256, customClaimsFactory, )(endpoint)
I'm not able to access context and request data anywhere. Is there an example I can look at?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using JWT, where am I suppose to validate claims like
jti
and other custom claims?I'm not able to access context and request data anywhere. Is there an example I can look at?
The text was updated successfully, but these errors were encountered: