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

Support Base64 JWT secrets #1

Merged
merged 1 commit into from
Jan 7, 2016

Conversation

ryanbreen
Copy link
Owner

Auth0 generates JWTs signed by a key that is a Base64-encoded binary blob (witness the "secret base64 encoded" checkbox at jwt.io). This patch adds support for such secrets while preserving the status quo by default.

I believe this patch is necessary: decoding the secret provided by Base64 and attempting to use it in its raw form is a non-starter: round-tripping it through UTF-8, as would be necessary using curl in a terminal to pass these secrets to Kong APIs, will perturb the byte stream and lead to spurious signature mismatches.

Auth0 generates JWTs signed by a key that is a Base64-
encoded binary blob (witness the "secret base64 encoded"
checkbox at jwt.io). This patch adds support for such
secrets while preserving the status quo by default.
@ryanbreen ryanbreen merged this pull request into feature/jwt-secret-key-field Jan 7, 2016
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.

1 participant