-
Notifications
You must be signed in to change notification settings - Fork 549
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
Enable custom auth flow on demand #1488
Comments
Is there any update on this one? |
There is not a way to enable/disable custom auth after initialization and there's currently no way to reinitialize AWSMobileClient while the app is running. It sounds like you know how to initialize it differently for the different flows on startup, correct? You're just asking if you can change from Oauth to custom during runtime? If so, currently not. |
Yes, and that is what we are doing at the moment (initialise the client depending on the flow) but there is a case that is giving us trouble:
Do you know any work around? |
Yeah sadly not at this time - we are working on an improved auth API at the moment and will consider this issue during the design of that. |
Hi @TrekSoft, any news on this issue? I know you recently launched the Amplify sdk and I was wondering if this is something you took into consideration there or if new versions of the AWSMobile SDK provides a fix? |
Hey, yeah the new Amplify Auth category doesn't support this yet but we have an open feature request here to support reconfiguration: aws-amplify/amplify-android#560 |
And will it be only available on Amplify? or will the feature be available on AWS SDK as well? |
Yeah I don't know of any plan to enable that on AWSMobileClient - just Amplify. |
I honestly am a bit flabbergasted at the fact that there is no account of supporting all of the authentication types. |
Hi @TrekSoft can you please confirm that the issue above is fixed in Amplify? |
State your question
Our default configuration in the config file is set to use
OAuth
, we use this to handle most of the authentication flows on our app, however we provide a password less flow that needs to be handled using custom auth. The problem is that if I initialise the client with custom auth flows enabled, regularOAuth
flows won't work and if I initialise the client with out custom auth our password less flow always triggers and exception:NoAuthorizedException: Incorrect username or password
My question then is: is possible to enable/disable custom auth flow on demand and if so, how? Or re-initialise the client so it will load the desired config?
Which AWS Services are you utilizing?
Cognito User Pools through the AWSMobileClient
Device Information (please complete the following information):
Environment (please complete the following information):
SDK Version: 2.16.7
The text was updated successfully, but these errors were encountered: