Skip to content
New issue

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

add WithParseOption() to create jwtauth with custom parse options #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

msvechla
Copy link

@msvechla msvechla commented Feb 2, 2022

Hello,

This PR adds the new function WithParseOption(), which allows specifying custom parse options for JWTAuth.
This enables specifying custom options such as jwt.WithKeySetProvider, which allows us to use JWKS and more sophisticated validation logic.

See also related #59, #40, #27. We should be able to resolve most of the mentioned issues here with these custom options.

Thanks a lot, let me know if you have any further feedback!

@msvechla
Copy link
Author

msvechla commented Feb 2, 2022

We could also consider allowing to specify multiple parse-options

@msvechla
Copy link
Author

msvechla commented Feb 8, 2022

@pkieltyka any thoughts on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants