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 option to pass a fully parsed JWT object to the key resolver. #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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

wants to merge 2 commits into from

Conversation

bemisguided
Copy link

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.

@coveralls
Copy link

Coverage Status

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

@coveralls
Copy link

coveralls commented Dec 22, 2017

Coverage Status

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

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.

None yet

2 participants