Skip to content

Allow Numeric values during encoding#327

Merged
excpt merged 1 commit intojwt:masterfrom
fanfilmu:master
Sep 1, 2020
Merged

Allow Numeric values during encoding#327
excpt merged 1 commit intojwt:masterfrom
fanfilmu:master

Conversation

@fanfilmu
Copy link
Copy Markdown
Contributor

Hi!

According to this #134 and the sources linked there, exp, nbf and iat claims are NumericDates, not integers.

This PR allows numeric values for those claims during token creation.

I'm not sure where the validator was added, but I discovered the issue while upgrading from 1.x to 2.x - in 1.x float values were allowed.

@sourcelevel-bot
Copy link
Copy Markdown

Hello, @fanfilmu! This is your first Pull Request that will be reviewed by SourceLevel, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.

@excpt excpt self-requested a review July 7, 2020 00:20
@excpt excpt added this to the Version 2.3.0 milestone Jul 7, 2020
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.

2 participants