USER_SRP_AUTH is not enabled for the client

0

Hello all.

I'm getting the message "USER_SRP_AUTH is not enabled for the client." every time I try to login to the system thru amplify SKD (react js website). So far, I have no clue how to fix this.

The documentation says very little about it and I am nubby in AWS services. However, I really want to use Cognito as the identity service from my apps.

Anyway, does someone knows how to fix this?

Renato

asked 4 years ago5766 views
1 Answer
0

Hello Renato,

Thank you for chatting in.

Over the chat we discussed that you were seeing this error when calling Auth.SignIn from your project : USER_SRP_AUTH is not enabled for the client. This error occurs when the App Client does not have USER_SRP_AUTH enabled. Cognito supports a set of authentication flows for logging the user in and Amplify internally uses USER_SRP_AUTH. Therefore, when using the sign-in API call of Amplify, it is required to enable this for the app client. This can be done using Cognito user pool console --> App Client --> Show Details --> Check the box against USER_SRP_AUTH and save it. We tested it out and it worked fine. You can read more about the auth flows from here - [1]

[1] https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html#amazon-cognito-user-pools-custom-authentication-flow
[2] https://aws-amplify.github.io/docs/js/authentication#manual-setup
[3] https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html

answered 4 years ago
  • Hi @renatospaka have you get any solution for this ?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions