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

질문됨 4년 전5826회 조회
1개 답변
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

답변함 4년 전
  • Hi @renatospaka have you get any solution for this ?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠