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

Allow string hash keys in validation configurations #130

Merged
merged 6 commits into from
Feb 24, 2016
Merged

Allow string hash keys in validation configurations #130

merged 6 commits into from
Feb 24, 2016

Conversation

tpickett66
Copy link
Contributor

Versions prior to 1.5.2 had verification configuration parameters that were mixed strings and symbols, c490860 changed this to exclusively use symbol keys. This change caused verifications that were previously run to not be run. The solution to handle both strings and symbols is a bit hacky but compatibility with both versions was a goal when putting this together.

Fixes #128

Making this a class makes it easier to refactor parts into private
methods, additionally it starts paving the way to allowing verification
to track failure states and allow the client to handle them without
throwing exceptions.
This restores backwards compatibility with 1.5.1 while maintaining
compatibility with clients using 1.5.2.

Fixes #128
excpt added a commit that referenced this pull request Feb 24, 2016
Allow string hash keys in validation configurations
@excpt excpt merged commit 04120f6 into jwt:master Feb 24, 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.

2 participants