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

Generate TOTP code from secret passed by environment variable #201

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Misterio77
Copy link

@Misterio77 Misterio77 commented Aug 17, 2021

Hey!

Thanks a lot for this project.

I was trying to get it working without any interaction (so i can use it in a github action), but my company enforces MFA. I added a way to automatically generate the TOTP code if the secret is passed in by a variable (like the password can be passed in), for example:

AZURE_DEFAULT_TFA_SECRET=XXX AZURE_DEFAULT_PASSWORD=XXX aws-azure-login --no-prompt

Let me know if there's anything that can be improved!

@Misterio77 Misterio77 mentioned this pull request Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants