njwt
njwt copied to clipboard
Add option to pass a fully parsed JWT object to the key resolver.
We have a use case where we need to resolve keys for JWTs from multiple issuers. Figured the most flexible solution was to provide the option pass a fully parsed JWT to the key resolver instead of just the kid
.
Made this change backwards compatible so the the kid
is passed still by default. A new setting on the Verifier controls this new behaviour. Added a test case and updated the README.md
Happy to clean up or change anything.
Coverage decreased (-79.9%) to 20.147% when pulling 6550ea42116bbf628fdea692860fe4820377ac03 on TouchBistro:feature/key-resolver-by-jwt into 3bc7df1fa56fa139d1070e288152a5fd3d41c44a on jwtk:master.