-
Notifications
You must be signed in to change notification settings - Fork 2.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
CUSTOM_AUTH error when using USER_SRP_AUTH #4915
Comments
I have the same issue with the following version: When the password is missing on the login page the error shows up. |
Hello, I'm having the same issue after following this post on your docs: I can't sign in without a password. |
To elaborate...
My signup:
My signIn: ` const signInCog = async (e: NativeSyntheticEvent) => {
My returned error message from signIn (I am using the sample passwordless auth deployment listed in the link above):
Event: *Also, my Any suggestions? |
@rfakoya, @deekay00 this is currently expected behavior. Amplify library doesn't require the config property amplify-js/packages/auth/src/Auth.ts Lines 1949 to 1955 in 9b05aee
If the password field is empty, it's expected that the client wants a passwordless signin and so it follows the custom_auth flow amplify-js/packages/auth/src/Auth.ts Lines 453 to 457 in 9b05aee
which then sets the authentication flow to be of Custom_Type amplify-js/packages/auth/src/Auth.ts Lines 578 to 583 in 9b05aee
This validation is expected to happen in the client with appropriate error messages to the user. |
I get the same error message. How are we supposed to enforce a required password error message ? This is the default behavior of the sign-in component: password field is marked as required* |
Work around I am using:
|
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
aws-amplify / auth with cognito user pool
I using a aws-amplify manual config (without using cli) and withAuthenticator HOC in a react web app for authentication. In my user pool app client settings, I have Enable SRP (secure remote password) protocol based authentication (ALLOW_USER_SRP_AUTH) checked.
However, when I attempt to sign in providing a username but not providing a password (leave password field blank) I get an error saying
CUSTOM_AUTH is not enabled for the client
instead of a password is required error.I inspected the network request and noticed that the AuthFlow is CUSTOM_AUTH in spite of my config / settings.
In my index.tsx file, I have:
I'm using aws-amplify version 2.2.4 and aws-amplify-react 3.1.5
The text was updated successfully, but these errors were encountered: