-
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
Remove browser redirection after signOut() in app using social sign in #401
Comments
I think I remember reading somewhere that in the iOS package, there is the option to just delete the auth token to sign out. That would be ideal to have for any social sign in on both ios and android if possible. |
Related to this amplify-android issue. |
@FirdousNath Are you using Hosted UI at all? If you are only using the standard APIs such as |
Hello, I removed the OAuth section from config file. _federatedSignIn: Putting provider and token in store How to get rid of this without changing the actual configuration in aws? |
Nothing helped so far, I removed everything still the same. What I did to override is I included a deep link to my app which in turns reopen my app |
I was wondering if there is any progress regarding this issue? |
Any update? |
Same problem here |
Amplify configaration file remove all redirect code. |
I'm using the |
+1 |
I'm using email sign in without UI, and social sign in with UI at the same time, so I have to include the OAuth and redirect section in amplify config file. |
any update on this? |
As of now, the Amplify-Android library, which Amplify-Flutter depends on, does not officially support social sign in and username based sign in within the same app. The amplify-android issue linked above is the feature request for that in Amplify-Android. If this is a feature you are looking for, you can give that issue a 👍 to show your support. |
To overcome this issue, do global sign out so that the browser redirect is skipped.
|
This works @ken-ng-esotec ! thanks! Also, anyone has encountered like when authenticating thru google / Facebook, if there's only one account logged in, it automatically registers that account without asking to choose another account? |
Hello everyone - We have recently released a new developer preview version of the Auth category (amplify_flutter v1.0.0-next.0). This new version is a full re-write of the auth category in dart, and it supports Mobile, Desktop, and Web. This issue is addressed in this new version. You can read more about the developer preview release in the blog post and docs. I will update this issue again once this new version is out of developer preview. Let me know if you have any questions! |
I wanted to add some additional info about this issue and what has been resolved in the dev-preview release. When using Social Sign In / Hosted UI, Cognito sets a token in the browser. This token needs to be cleared upon sign out as it allows someone to obtain a Cognito session without re-authenticating. The browser redirection seen on sign out is caused by Amplify launching a browser to clear this token. In the current stable version of Amplify (v0.6.x), when targeting Android, this browser opens on sign out when Hosted UI is enabled in your app, even if the user did not sign in via Hosted UI. This is a bug. The browser should only be launched if the user signed in via hosted UI since there is nothing to clear if another sign in method was used (username/password). This bug has been resolved in the latest dev-preview release (v1.x.x). The browser does still launch on Sign Out if a user is signed in via Hosted UI. However, in the dev-preview release this should be much less noticeable as it does not redirect to a new window. We have a separate feature request (#530) open to remove all system dialogs and browser windows on sign out for users that did sign in via Hosted UI. If you are looking to suppress all dialog/browser windows, you can give #530 a 👍 |
Hey, @Jordan-Nelson |
This issue has been addressed in v1.0.0 of Amplify Flutter, which is now stable. See the comment above for details on what was changed in this version with regards to this issue. 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. |
This behaviour is seen under android whenever I call
Amplify.Auth.signOut()
it opens up chrome with redirection link. I also tried removing metadata field inside amplifyconfiguration.dart file."SignInRedirectURI": "", "SignOutRedirectURI": "",
Can someone know how to remove redirection ?
The text was updated successfully, but these errors were encountered: