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(credential-provider-sso): accept tokens till they expire #5124

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

kellertk
Copy link
Contributor

@kellertk kellertk commented Aug 22, 2023

Issue

Fixes #4798

Description

Originally, the SDK decided to reject SSO tokens that were within 15 minutes of their expiry time as already expired, but the SSO refresh process only ran if there were 5 minutes left on the token. That means that if calls were made between 5 and 15 minutes of expiry, users would have to manually refresh the token.

The Java SDK decided to remedy this by removing that 15 minute check (aws/aws-sdk-java-v2#4157). This pull implements the same fix.

Testing

How was this change tested?
yarn test in the changed package; all tests pass.

Additional context

Add any other context about the PR here.
See also:
aws/aws-cdk#24782
aws/aws-sdk-js#4441
aws/aws-sdk#531


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kellertk kellertk requested a review from a team as a code owner August 22, 2023 17:39
@trivikr trivikr changed the title fix(credential-provider-sso): accept all unexpired tokens as unexpired fix(credential-provider-sso): accept tokens till they expire Aug 22, 2023
@siddsriv siddsriv merged commit b57d48f into aws:main Aug 22, 2023
3 checks passed
@github-actions
Copy link

github-actions bot commented Sep 6, 2023

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants