Skip to content

Commit

Permalink
Compute secret hash with username supplied by password challenge (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Allworth <[email protected]>
  • Loading branch information
peterallworth and Peter Allworth authored Feb 3, 2021
1 parent 12ddeae commit 84939af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cognitosrp.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (csrp *CognitoSRP) PasswordVerifierChallenge(challengeParms map[string]stri
"PASSWORD_CLAIM_SECRET_BLOCK": secretBlockB64,
"PASSWORD_CLAIM_SIGNATURE": signature,
}
if secret, err := csrp.GetSecretHash(csrp.username); err == nil {
if secret, err := csrp.GetSecretHash(internalUsername); err == nil {
response["SECRET_HASH"] = secret
}

Expand Down

0 comments on commit 84939af

Please sign in to comment.