-
Notifications
You must be signed in to change notification settings - Fork 191
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
SRP auth fails with NoCredentialsError #146
Comments
I figured out an easy solution. The problem is that the boto3 libraries are trying to sign the request to aws, but this request is not supposed to be signed. To prevent that, create the identity pool client with a config that specifies no signing. Use the form of AWSSRP that accepts a pre-created client, rather than letting it create its own.
in the warrant code, AWSSRP class, when the initializer creates a client instance (in the case where the caller did not provide one), it should specify this same config option. |
This is actually true. We're now fixing it. Right now, I'm still looking into AWS cognito docs for functions that does not require signed signature as the initialization of the class does create a client its own with the use of [access_key, secret_key, user_pool_region], meaning it does not specify the configuration of the request whether it is unsigned or not. |
Next release would fix this issue. By simply not providing the AWS access key and secret, the signature would automatically be unsigned. |
@Zuiluj, I just ran into this issue as well, and would really want a fix that does not involve me monkey patching :) |
@Zuiluj Seeing this as well. Any idea on when you'll be releasing the patch? Need assistance getting it over the line? |
Though this project appears to be dead, I'll post the issue for others who may run into it.
While SRP does not use AWS IAM credentials, if you don't have any in your credential store, the SRP call will fail with a NoCredentialsError exception.
You can create dummy/false credentials, and the call will succeed. Clearly a defect.
For more details (from somebody else, not me) see
https://stackoverflow.com/questions/47849702/aws-boto-warrant-library-srp-authentication-and-credentials-error
The text was updated successfully, but these errors were encountered: