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: cache MFA based credentials #1744

Merged
merged 5 commits into from
Jan 28, 2020
Merged

fix: cache MFA based credentials #1744

merged 5 commits into from
Jan 28, 2020

Conversation

sriram-mv
Copy link
Contributor

Issue #, if available:

#1682

Why is this change necessary?

SAM CLI does not cache MFA based credentials and asks for them each time as the credentials are not cached.

How does it address the issue?

MFA based credentials are cached at ~/.aws/boto/cache

What side effects does this change have?

  • Only one prompt for MFA based authentication, and if the MFA code is successful, only one prompt till the credentials that were retrieved expire.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sriram-mv sriram-mv requested a review from jfuss January 23, 2020 20:48
Copy link
Contributor

@jfuss jfuss left a comment

Choose a reason for hiding this comment

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

LGTM

@jfuss
Copy link
Contributor

jfuss commented Jan 23, 2020

@sriram-mv Looks like there are some unit tests that need to be adjusted for the new implementation, but otherwise things look good.

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