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 access to header and payload without signature verification #32

Merged
merged 1 commit into from
Jan 30, 2014
Merged

Allow access to header and payload without signature verification #32

merged 1 commit into from
Jan 30, 2014

Conversation

petergoldstein
Copy link
Contributor

This PR includes a few related changes:

  1. Some refactoring, mostly 'extract method' that is designed to shrink the size and responsibility of individual methods.
  2. Using these more granular methods, allow access to the header and payload of the token to address API request - JWT::decoded_header() #26
  3. Pull the JSON encode/decode into a dedicated module, as a precursor to making MultiJson optional for Ruby 1.9+. MultiJson has been EOL'd, so it's desirable to extract this dependency.

…er and payload without signature verification, and prepare for making MultiJson not required on Ruby 1.9+
progrium added a commit that referenced this pull request Jan 30, 2014
…for_making_multi_json_optional

Allow access to header and payload without signature verification
@progrium progrium merged commit 46ec006 into jwt:master Jan 30, 2014
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