From d7d70010bac0494a5902e92a3bd7e124611cd6c1 Mon Sep 17 00:00:00 2001 From: Ezequiel Barros Date: Tue, 19 Apr 2022 10:30:35 -0300 Subject: [PATCH] Fix bg_response in request payload to passwd challenge --- aws_google_auth/google.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aws_google_auth/google.py b/aws_google_auth/google.py index 398eff5..40d31c5 100644 --- a/aws_google_auth/google.py +++ b/aws_google_auth/google.py @@ -264,6 +264,10 @@ def do_login(self): # Update the payload payload['Passwd'] = self.config.password + # Set bg_response in request payload to passwd challenge + if self.config.bg_response: + payload['bgresponse'] = self.config.bg_response + # POST to Authenticate Password sess = self.post(passwd_challenge_url, data=payload)