<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00009sfiuKCAQOkta Classic EngineAuthenticationAnswered2024-12-31T09:01:30.000Z2023-11-30T20:37:07.000Z2023-12-01T18:22:02.000Z
Why does aws-cli prompt twice for multi-factor authentication and require me to choose between Okta and token?

When I use this command `okta-awscli --profile infra-temp --okta-profile infra-temp` I am prompted for a username, password and twice to authenticate with Okta Verify on my phone. To make things easier I added my username, password and `factor = OKTA` in my ~/.okta-aws config file. Sweet. However it still prompts with this:

 

ms@mma eng-infrastructure % okta-awscli --profile infra-temp --okta-profile infra-temp

Waiting for push verification...

Multi-factor Authentication required for application.

Pick a factor:

[ 0 ] Okta Verify App: SmartPhone_IPhone: Marc’s 12 Mini

[ 1 ] token:software:totp( OKTA ) : Ma...d@a...s.com

Selection: 0

ms@mma eng-infrastructure %

 

So I eliminated one ask about where to authentcate with the `factor = OKTA` setting. Why does it prompt twice and how can I configure it to use Okta Verify the second time without asking me?


This question is closed.
Loading
Why does aws-cli prompt twice for multi-factor authentication and require me to choose between Okta and token?