Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Add dual-prompt to list of challenge choices
Browse files Browse the repository at this point in the history
This fixes a small issue from 77e7544 (cevoaustralia#206) where the code for
handling the dual-prompt page was added, but the support for it
wasn't added in the challenge-selection stage. This adds the `elif`
clause neeeded to parse the dual prompt method.

(Tested against 0.0.37 and login works successfully after this
commit is applied.)

Fixes cevoaustralia#202
  • Loading branch information
Parent5446 committed Mar 27, 2021
1 parent 19a48a5 commit cb6fc15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aws_google_auth/google.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,8 @@ def handle_selectchallenge(self, sess):
challenges.append(['YubiKey', i.attrs.get("data-challengeentry")])
elif "challenge/az/" in action:
challenges.append(['Google Prompt', i.attrs.get("data-challengeentry")])
elif "challenge/dp/" in action:
challenges.append(['Google Dual Prompt', i.attrs.get('data-challengeentry')])

print('Choose MFA method from available:')
for i, mfa in enumerate(challenges, start=1):
Expand Down

0 comments on commit cb6fc15

Please sign in to comment.