njwt icon indicating copy to clipboard operation
njwt copied to clipboard

Add option to pass a fully parsed JWT object to the key resolver.

Open bemisguided opened this issue 7 years ago • 2 comments

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.

bemisguided avatar Dec 22 '17 17:12 bemisguided

Coverage Status

Coverage decreased (-79.9%) to 20.147% when pulling 6550ea42116bbf628fdea692860fe4820377ac03 on TouchBistro:feature/key-resolver-by-jwt into 3bc7df1fa56fa139d1070e288152a5fd3d41c44a on jwtk:master.

coveralls avatar Dec 22 '17 17:12 coveralls

Coverage Status

Coverage decreased (-79.9%) to 20.147% when pulling 8992a8c32472c282fb1f81af591c82b6e3e3f47a on TouchBistro:feature/key-resolver-by-jwt into 3bc7df1fa56fa139d1070e288152a5fd3d41c44a on jwtk:master.

coveralls avatar Dec 22 '17 17:12 coveralls