Skip to content
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

Read the authenticationFlowType value of the configuration #2503

Conversation

bogren
Copy link

@bogren bogren commented Jun 7, 2021

Attempt to fix #1488. Related to but doesn't fix #684. A small step to show the need for customizing programmatically after the SDK has been initialized.

The change is inspired from the workaround described in aws-amplify/aws-sdk-ios#1204 and the original PR that looks slightly different when it's initially introduced on iOS aws-amplify/aws-sdk-ios#1860.

The idea with the change is to allow us to programmatically change to custom auth before attempting login, calling the custom challenge, then revert the change after the sign in, if we fail the user could change/try a different method.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@raphkim raphkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @bogren! Thank you for your contribution to the project.
We do not officially support the use-case of programmatically switching between different auth flow types at the moment, but I can see how this PR can provide a potential workaround. We will investigate to see if there are any unintended side effects of this and provide an update.

@bogren
Copy link
Author

bogren commented Jun 9, 2021

Hi, yes I understand. Thanks, appreciate you looking into the possibilities to get a workaround like this merged.

@bogren bogren force-pushed the read-custom-auth-value-from-configuration-file branch from 6cab3f4 to 5dd838a Compare June 14, 2021 08:20
@bogren bogren closed this Jun 14, 2021
@bogren bogren deleted the read-custom-auth-value-from-configuration-file branch June 14, 2021 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom scopes in access token programmatically Enable custom auth flow on demand
2 participants