amplify-swift icon indicating copy to clipboard operation
amplify-swift copied to clipboard

Change auth flow on the fly

Open gldavis3000 opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. Migration triggers require USER_PASSWORD_AUTH to work, but this flow is not as secure as other flows. Amplify does not allow switching authentication flow without a new build of our app. We'd like to use USER_SRP_AUTH for security, but the Cognito migration trigger doesn't get hit with this flow type. We are forced to make our auth flow less secure because of this restriction.

Describe the solution you'd like Allow amplify to switch auth flow on the fly. This way the app can attempt to auth with USER_SRP_AUTH and, if that fails, then attempt USER_PASSWORD_AUTH.

Describe alternatives you've considered Not using Amplify because this is not the only restriction we have found since switching to Amplify.

gldavis3000 avatar Mar 17 '21 14:03 gldavis3000

Currently, Amplify does not support the Cognito migration flow. We'll leave this issue open as a feature request for that.

palpatim avatar Mar 17 '21 15:03 palpatim

This issue is stale because it has been open for 14 days with no activity. Please, provide an update or it will be automatically closed in 7 days.

github-actions[bot] avatar Jun 19 '21 00:06 github-actions[bot]

Released in v2.0.0

royjit avatar Oct 20 '22 02:10 royjit