jwtauth icon indicating copy to clipboard operation
jwtauth copied to clipboard

add WithParseOption() to create jwtauth with custom parse options

Open msvechla opened this issue 2 years ago • 2 comments

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 avatar Feb 02 '22 16:02 msvechla

We could also consider allowing to specify multiple parse-options

msvechla avatar Feb 02 '22 16:02 msvechla

@pkieltyka any thoughts on this?

msvechla avatar Feb 08 '22 21:02 msvechla