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 2FA support #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

IndranilVyas
Copy link

In re #47 , I have implement 2FA support by adding new Flag named mfa or m for short. It is boolean type, indicating either default profile or named profile provided via profile flag has MFA enabled.

Implementation sets Session Options field AssumeRoleTokenProvider with stscreds.StdinTokenProvider and also set duration for this session as 1 hour, the duration can be provided via user input with duration flag but for now it is hard coded. I can change that if needed.

Note: 2FA will only work here for IAM Role that have 2FA enabled.

@lucagrulla
Copy link
Owner

Thanks for this PR.
I'll try to review it over the coming days.

@lucagrulla lucagrulla mentioned this pull request Jan 2, 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.

2 participants