Skip to content

Adjust JWT expiration interval - #572

Merged
mattwiller merged 2 commits into
masterfrom
adjust_jwt_expiration_interval
Mar 22, 2018
Merged

mattwiller merged 2 commits into
masterfrom
adjust_jwt_expiration_interval

Conversation

@mattwiller

Copy link
Copy Markdown

Setting the JWT expiration interval to the maximum allowed time of
60 seconds is not advisable, since the Box API server will actually
reject a JWT assertion if the exp claim is too far in the future.
Clock drift between the SDK and API of even a few seconds could
then cause the JWT to be rejected. Setting the expiration
interval to 30 seconds instead should maximum the amount of clock
drift allowable before a JWT would get rejected, reducing the
chances of an error.

Setting the JWT expiration interval to the maximum allowed time of
60 seconds is not advisable, since the Box API server will actually
reject a JWT assertion if the exp claim is too far in the future.
Clock drift between the SDK and API of even a few seconds could
then cause the JWT to be rejected.  Setting the expiration
interval to 30 seconds instead should maximum the amount of clock
drift allowable before a JWT would get rejected, reducing the
chances of an error.
@mattwiller
mattwiller requested a review from carycheng March 13, 2018 08:16
@boxcla

boxcla commented Mar 13, 2018

Copy link
Copy Markdown

Verified that @mattwiller has signed the CLA. Thanks for the pull request!

@mattwiller
mattwiller merged commit b9e122b into master Mar 22, 2018
@mattwiller
mattwiller deleted the adjust_jwt_expiration_interval branch March 22, 2018 20:40
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