Skip to content

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

Open
msvechla wants to merge 1 commit intogo-chi:masterfrom
msvechla:with_parse_option
Open

add WithParseOption() to create jwtauth with custom parse options#68
msvechla wants to merge 1 commit intogo-chi:masterfrom
msvechla:with_parse_option

Conversation

@msvechla
Copy link
Copy Markdown

@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
Copy Markdown
Author

msvechla commented Feb 2, 2022

We could also consider allowing to specify multiple parse-options

@msvechla
Copy link
Copy Markdown
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