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

Just enabled 2FA (again) and I'm not getting the prompt on my phone #231

Open
slikk66 opened this issue Jun 12, 2021 · 9 comments
Open

Just enabled 2FA (again) and I'm not getting the prompt on my phone #231

slikk66 opened this issue Jun 12, 2021 · 9 comments

Comments

@slikk66
Copy link

slikk66 commented Jun 12, 2021

Hi, tried with version .37, I get:

Google Password: 
Check your phone - after you have confirmed response press ENTER to continue.^[

but no prompt comes through.

I also tried this #227 but it doesn't work.

Any other option besides logging out of my phone?

Thanks!

@stevemac007
Copy link
Contributor

I've been having similar issues recently too. Will dig into the underlying calls - likely google has changed something again.

@slikk66
Copy link
Author

slikk66 commented Jun 14, 2021

Thank you.

It actually worked for me this morning, I am running the #227 PR code though (and was last time) so not sure if that is a difference from your case or not.

I noticed that after I posted this issue a few days back, throughout the day on my phone I was receiving google alerts much later in the day for things I had done earlier, I wonder if they were just behind in processing their notifications. I did not ever receive a "are you trying to log in" message, but later in the day I got notifications saying "2 factor disabled" and "2 factor enabled" several hours after I had done those actions trying to debug this issue.

Google Password: 
Check your phone - after you have confirmed response press ENTER to continue.
[  1] arn:aws:iam::12345:role/Role1
[  2] arn:aws:iam::12345:role/Role2
Type the number (1 - 2) of the role to assume: 2
Assuming arn:aws:iam::12345:role/Role2
Credentials Expiration: 2021-06-14 22:56:25-06:00

edit: also, when it worked this morning the "are you trying to sign in" prompt looked different than I had ever seen before, perhaps they were upgrading them? thanks for looking into it, I'm moving my entire org to required 2 factor, so for the engineers who use it on the CLI we would definitely want to make sure it is working.

@mjsalinger
Copy link

I just came across this today after never having an issue. No prompt on my phone.

@slikk66
Copy link
Author

slikk66 commented Jul 20, 2021

I forgot I put this issue up - I believe that I found the problem (at least for me), sorry for not posting it sooner!

On my Android phone, I found that some of the google services, I believe specifically the "google play" service was being put to sleep by the OS. I went into settings, search for "never sleeping apps" and added all of the google, google play, apps into that list and now I get the prompts consistently.

@pmbeaumier
Copy link

I've been experiencing this as well since yesterday.
I've tried adding the google play apps to the non-optimized list but that didn't change anything. I can not get a prompt regardless of what I try.
I configured my account on a completely different android device, after a factory reset and I still can't get a prompt.

@michaellouredo
Copy link

I've been experiencing at the no prompt on my phone too.
I checked that currently after the password challenge Google redirect to its default challenge that is Prompt normally.
I've created a PR #235 that allow use this and other MFA methods

@JPLemelin
Copy link

+1 For PR #235

@mdouglass
Copy link

+1 for #235

1 similar comment
@bmf-san
Copy link

bmf-san commented Mar 15, 2022

+1 for #235

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

No branches or pull requests

8 participants