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

gefragt vor 4 Jahren5828 Aufrufe
1 Antwort
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

beantwortet vor 4 Jahren
  • Hi @renatospaka have you get any solution for this ?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen