Skip to content

Commit

Permalink
Update bgresponse copy to mention logged out state
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimarinho committed Nov 17, 2019
1 parent 76c9d5f commit 75cda2f
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 75cda2f

Please sign in to comment.