Skip to content
This repository was archived by the owner on Mar 22, 2021. It is now read-only.

Conversation

@fightingtheboss
Copy link

This pull request aims to resolve issue #123 for now.

Instead of creating an abstraction, I included the json-jwt library and conditionally use that to decode the token when the Knock.token_public_key is set to a valid URL. All claims verifications still go through JWT::Verify as they did before.

This turned out to be the quickest path to adding this functionality into Knock. As per this issue, JWKs may end up being supported in v2.0 of the jwt gem, at which point a refactor can be done to remove the dependency on json-jwt.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant