Skip to content

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

Open
bemisguided wants to merge 2 commits intojwtk:masterfrom
TouchBistro:feature/key-resolver-by-jwt
Open

Add option to pass a fully parsed JWT object to the key resolver.#50
bemisguided wants to merge 2 commits intojwtk:masterfrom
TouchBistro:feature/key-resolver-by-jwt

Conversation

@bemisguided
Copy link
Copy Markdown

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

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

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.

2 participants