Skip to content

Commit

Permalink
Merge pull request #157 from ruimarinho/support/bgresponse-improved-copy
Browse files Browse the repository at this point in the history
Update bgresponse copy to mention logged out state
  • Loading branch information
stevemac007 authored Nov 17, 2019
2 parents 76c9d5f + 75cda2f commit 0cdf40c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions aws_google_auth/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,11 @@ def do_login(self):
raise ExpectedGoogleException('Invalid username or password')

if "signin/rejected" in sess.url:
raise ExpectedGoogleException(u'''Default value of parameter `bgresponse` has not accepted.
Please visit login URL {}, open the web inspector and execute document.bg.invoke() in the console.
Then, set --bg-response to the function output.'''.format(self.login_url))
raise ExpectedGoogleException(u'''Default value of parameter `bgresponse` has not been accepted.
First, make sure you are logged out from AWS (or use an incognito browser session). Then, visit
the login URL at {}.
Open the web inspector and execute document.bg.invoke() in the console. Then, set --bg-response or
$GOOGLE_BG_RESPONSE to the function output.'''.format(self.login_url))

self.check_extra_step(response_page)

Expand Down

0 comments on commit 0cdf40c

Please sign in to comment.