Skip to content

Removed leeway from verify_iat#257

Merged
excpt merged 2 commits intojwt:masterfrom
ab320012:master
Mar 22, 2018
Merged

Removed leeway from verify_iat#257
excpt merged 2 commits intojwt:masterfrom
ab320012:master

Conversation

@ab320012
Copy link
Copy Markdown
Contributor

@ab320012 ab320012 commented Mar 22, 2018

Fixes #247.

@excpt excpt self-requested a review March 22, 2018 09:15
Copy link
Copy Markdown
Member

@excpt excpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A test should be added to ensure that the leeway is not applied to the iat claim when the token is verified.

Comment thread spec/jwt/verify_spec.rb
Verify.verify_iat(payload, options)
end

it 'must allow configured leeway' do
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to invert one of these tests to ensure that the leeway is ignored.

@excpt
Copy link
Copy Markdown
Member

excpt commented Mar 22, 2018

@ab320012 Thank you for the PR! I added my review. :) Let me know if you have the time to improve that or if any help is needed.

@excpt excpt changed the title removed leeway from verify_iat and tests issue #247 Removed leeway from verify_iat Mar 22, 2018
Copy link
Copy Markdown
Member

@excpt excpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@excpt excpt added this to the Version 2.2.0 milestone Mar 22, 2018
@excpt excpt merged commit dba5c9b into jwt:master Mar 22, 2018
@Jack12816
Copy link
Copy Markdown

Thanks, guys!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants