From 75cda2fe647c03bb305ccf23c3f743944a2e7af5 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Sun, 17 Nov 2019 00:40:51 +0000 Subject: [PATCH] Update bgresponse copy to mention logged out state --- aws_google_auth/google.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/aws_google_auth/google.py b/aws_google_auth/google.py index f2f51f4..2cc1fb0 100644 --- a/aws_google_auth/google.py +++ b/aws_google_auth/google.py @@ -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)