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

Add support for sts #453

Merged
merged 2 commits into from
Jun 3, 2021
Merged

Add support for sts #453

merged 2 commits into from
Jun 3, 2021

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Jun 2, 2021

Description of changes:

Adds support for sts and a basic example of how an STS based credentials provider could be wired up

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

Adds support for sts and a basic example of how an STS based credentials provider could be wired up
client,
credentials: Arc::new(Mutex::new(None)),
};
sts_provider.spawn_refresh_loop().await;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the Tokio runtime smart enough to discontinue the refresh loop after main completes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the runtime is dropped which cancels all tasks

@rcoh rcoh merged commit ed6f621 into main Jun 3, 2021
@rcoh rcoh deleted the sts branch June 3, 2021 00:45
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.

2 participants