-
Notifications
You must be signed in to change notification settings - Fork 249
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 Flow with passwordless login #2393
Comments
Hi @dagovalsusa, sorry you are facing this issue. Can you try the following in v0.6.10? await Amplify.Auth.signIn(
username: '<username>',
options: CognitoSignInOptions(authFlowType: AuthenticationFlowType.customAuth),
); |
Hi @dagovalsusa, I just saw your comment in #410. Sorry for the repetition. I would recommend using If you're not able to, can you please share your custom auth trigger code so I can continue diagnosing the problem? |
Hi, @dnys1 with |
I'm glad to hear it. We are planning for a few months out. |
This issue has been addressed in v1.0.0 of Amplify Flutter, which is now stable. This release also includes web and desktop support for Auth, API, Analytics, and Storage. You can see the list of new features and bug fixes in the release notes, and see more details on how to migrate in the upgrade guide. |
Originally posted by @Jordan-Nelson in #410 (comment)
Hello everyone,
I've tried to implement Custom Auth Flow with passwordless login using v0.6.10 of amplify_flutter, but when I call Amplify.Auth.signIn('username') the response is "Cannot issue tokens when ChallengeName is SRP_A".
My Cognito is set right because we have used it in production for 2 years, and without amplify_flutter lib, it works.
Further with amplify_flutter v1.0.0-next1 the method Amplify.Auth.signIn('username') works perfectly.
So, I think that in version 0.6.x there is a bug for the CUSTOM_AUTH flow.
Here my amplifyconfiguration, my piece of code is equal to the tutorial example.
const amplifyconfig = ''' { "UserAgent": "aws-amplify-cli/2.0", "Version": "1.0", "auth": { "plugins": { "awsCognitoAuthPlugin": { "IdentityManager": { "Default": {} }, "CognitoUserPool": { "Default": { "PoolId": "us-east-1_xxxxxxx", "AppClientId": "xxxxxxxxxxxxxxxx", "Region": "us-east-1" } }, "Auth": { "Default": { "authenticationFlowType": "CUSTOM_AUTH", "OAuth": { "WebDomain": "xxxxxxx", "AppClientId": "xxxxxxxxxxxxxxxxx", "SignInRedirectURI": "xxx://", "SignOutRedirectURI": "xxx://", "Scopes": [ "phone", "email", "openid", "profile", "aws.cognito.signin.user.admin" ] } } } } } } }''';
The text was updated successfully, but these errors were encountered: