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

Automatic Authentication Token Refresh Support #107

Merged
merged 2 commits into from
May 14, 2024
Merged

Conversation

collinss-jpl
Copy link
Contributor

🗒️ Summary

This branch adds support to the DUM client script for automatic refresh of the Cognito authentication token used to communicate with API Gateway. Refresh occurs on an interval determined by the expiration time of the token provided by Cognito. The refresh is performed on a separate thread to allow use of a blocking scheduler to determine when refreshes should occur.

⚙️ Test Data and/or Report

This feature was tested on the MCP dev environment using a variety of expiration times and worker threads. In all cases, token refresh was able to occur without interruption to ongoing transfers.

♻️ Related Issues

Resolves #104

Copy link

@viviant100 viviant100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@tloubrieu-jpl tloubrieu-jpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go, thanks @collinss-jpl

@tloubrieu-jpl tloubrieu-jpl merged commit 48d1a1d into main May 14, 2024
2 checks passed
@tloubrieu-jpl tloubrieu-jpl deleted the 104_token_refresh branch May 14, 2024 21:59
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.

Implement automatic refresh of Cognito authentication token
3 participants