-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cognito-idp: "SECRET_HASH was not received" with USER_SRP_AUTH #3246
Labels
Comments
Hello, I tried to replicate the issue you described but I couldn't replicate it.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hello!
I'm trying to authenticate a user using
CognitoIdentityProviderClient
.TL;DR: Using USER_SRP_AUTH flow and a correct secret_hash, I get a response saying SECRET_HASH was not sent.
Here's the relevant portion of the code:
Then I get: "NotAuthorizedException: Client is configured with secret but SECRET_HASH was not received"
I have tested all the credentials (user, password, pool Id, app ID, secret_hash, SRP_A, same flow type, etc...) with both Python's
boto3
andrequests
and it works fine both ways (i get tokens and challange).Strangely, in the c++ version above:
authParameters
), I don't get the error of "SECRET_HASH was not received"authParameters["SECRET_HASH"] = "some_INCORRECT_secret_hash"
, I get an error saying the hash was not correct (but it was, apparently, received)From what I have read in several StackOverflow that SRP doesn't work with apps with secrets, but those threads seem outdated, and the python test seems to disprove that?
Could you please advise? Is this a limitation of the c++ sdk or is this a bug?
Many thanks in advance!
Regression Issue
Expected Behavior
Expect to receive either a success response or an invalid credentials error, but not a "not sent" error.
Current Behavior
See description of the bug
Reproduction Steps
See description of the bug
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.11.483
Compiler and Version used
clang-1600.0.26.6
Operating System and version
macOS 15.2
The text was updated successfully, but these errors were encountered: