The Wayback Machine - https://web.archive.org/web/20220309191139/https://github.com/jwt/ruby-jwt/pull/205
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

Enforce exp to be an Integer #205

Merged
merged 1 commit into from Jul 11, 2017
Merged

Enforce exp to be an Integer #205

merged 1 commit into from Jul 11, 2017

Conversation

lucasmazza
Copy link
Contributor

@lucasmazza lucasmazza commented May 22, 2017

The previous code was too permissive to accept different types that could be eventually serialized as a number, but that would require that whoever's is decoding the tokens that exp could be a String.

The previous code was too permissive to accept different types that
could be eventually serialized as a number, but that would require
that whoever's is decoding the tokens that `exp` could be a `String`.
excpt
excpt approved these changes Jul 11, 2017
@excpt excpt merged commit b05e715 into jwt:master Jul 11, 2017
3 checks passed
jbhannah added a commit to jbhannah/warden-jwt_auth that referenced this issue Oct 15, 2017
2.0.0+ enforce an integer in the payload's exp parameter. One test used
an expiration time of 0.01 to simulate an already-expired token, which
triggered the raise added in jwt/ruby-jwt#205. A value of -1
accomplishes the same thing and allows the test to pass.
waiting-for-dev added a commit to waiting-for-dev/warden-jwt_auth that referenced this issue Oct 23, 2017
2.0.0+ enforce an integer in the payload's exp parameter. One test used
an expiration time of 0.01 to simulate an already-expired token, which
triggered the raise added in jwt/ruby-jwt#205. A value of -1
accomplishes the same thing and allows the test to pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants