Skip to content

Commit

Permalink
Merge pull request #250 from ezequielsbarros/fix-js-background-param-…
Browse files Browse the repository at this point in the history
…in-challenge

Add bg_response in request payload to passwd challenge
  • Loading branch information
stevemac007 committed May 2, 2022
2 parents 19a48a5 + d7d7001 commit f139910
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws_google_auth/google.py
Original file line number Diff line number Diff line change
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

0 comments on commit f139910

Please sign in to comment.