Skip to content

Commit

Permalink
Fix bg_response in request payload to passwd challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezequiel Barros authored and Ezequiel Barros committed Apr 19, 2022
1 parent 19a48a5 commit d7d7001
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws_google_auth/google.py
Expand Up @@ -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)

Expand Down

3 comments on commit d7d7001

@igorGevaerd
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked like a charm!

Thank you!

@toshke
Copy link

@toshke toshke commented on d7d7001 Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly, thank you!

@lokeshjain2008
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This piece of code works, should have been merged.

Please sign in to comment.