8000 Allow user to turn off nbf generation in jwts by codejudas · Pull Request #390 · twilio/twilio-python · GitHub
[go: up one dir, main page]

Skip to content

Allow user to turn off nbf generation in jwts #390

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

Merged
merged 1 commit into from
Aug 25, 2017
Merged

Conversation

codejudas
Copy link
Contributor

We have had reports that nbf causes problems because if they arent provided they would take the local system time, however since they are validated on twilio's servers that requires that the system that generated the jwt and the system that validates it have relatively synced clocks which cannot be guaranteed.

Nbf will continue to be set if the user passes it on construction.

@codejudas codejudas mentioned this pull request Aug 24, 2017
@dougblack
Copy link
Contributor

I think the "security by default" ideology would ask that nbf is opt-out, not opt-in.

@codejudas codejudas changed the title Don't set nbf on JWT unless provided by user Allow user to turn off nbf generation in jwts Aug 25, 2017
@codejudas codejudas merged commit df3bbc2 into master Aug 25, 2017
@childish-sambino childish-sambino deleted the remove-default-nbf branch March 12, 2019 17:07
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.

3 participants
0