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

Fix auth retry for expired claim #697

Merged
merged 2 commits into from Sep 30, 2020
Merged

Fix auth retry for expired claim #697

merged 2 commits into from Sep 30, 2020

Conversation

PJSimon
Copy link
Member

@PJSimon PJSimon commented Sep 24, 2020

Fixes a bug discovered in #645 and #693 where we were not properly reading the error code and description from the exception thrown for an expired claim ("clock skew").
This bug was preventing any requests to be retried and from returning the actual expired claim exception to the client.
Now that retries should occur properly when there is "clock skew" between the client and server, the JWT assertion should be created using the Box server time found in the response headers, which should result in a successful authentication on the first retry.

@PJSimon PJSimon changed the title Add null checks to retry logic Fix auth retry for expired claim Sep 29, 2020
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.

None yet

2 participants