-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Login flow - random User cancelled OAuth flow errors #13393
Comments
@Lirontal1 Thanks for opening this, transferring to the Amplify JS repo for investigation |
hello @Lirontal1 . Getting the Do you have some user metadata that you can provide so we can try to identify the issue ? |
We had a similar issue and a customer solved it by changing some app routes. Could that solution applied here solve your issue ? |
@israx it happens to several users, all uses SAML for login (Okta, Azure AD etc..). |
Hello @ronbhomri . Could you provide a sample app that can help us to reliable reproduce this issue ? |
@Lirontal1 or @ronbhomri, wanted to check in and see if either of you are able to help us reproduce this better via a sample app per @israx request above. Let us know if this is still a blocker for you, thanks! |
hello @ronbhomri . I was not able to reproduce the issue based on the provided app. Could you specific the steps to reliable reproduce it ? |
@israx it happens usually when you try to login via SAML connection (for example Okta) |
@ronbhomri, can you provide the entirety of networks logs that you see when attempting to sign in and experiencing this? It's sounding like there's an issue happening when trying to redirect back from the federation from the Okta side. |
@Lirontal1 or @ronbhomri, are either one of you able to confirm/provide any further details about the about network logs? Thanks. |
@cwomack Can it be related to internet connection? we experienced a lot on network connection issues lately and we think it has something to do with it |
Hey, @ronbhomri! Appreciate your patience on a response here as I haven't been able to reproduce this on our side. It's possible that a poor network connection could result in errors you're experiencing, but I think we need more information to definitively say that. Do you have any additional information or logs that we can dissect further that would help us understand the users that are experiencing this? |
@cwomack I think the best thing here that will also solve us more errors we have during login will be to have a way to know the users passed the |
@ronbhomri, you should be able to use the 'signInWithRedirect' case (as seen here). I know in the original description of this issue the |
@ronbhomri, did the above the above docs link help? Wanted to check in and see if you're still blocked here. CC: @Lirontal1 |
Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue. Thank you! |
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Authenticator
How is your app built?
React App using Vite
What browsers are you seeing the problem on?
Chrome
Which region are you seeing the problem in?
No response
Please describe your bug.
We're using Amplify as our 3rd party library for logging in with Cognito.
We're seeing some users get
User cancelled OAuth flow
randomly when trying to log in.I've looked at Amplif's code base, and can confirm the users have BOTH state & code in the URL, and they do not go back using the browser.
In the hub listener we have in our app, we logout the user when we recieve a
signInWithRedirect_failure
event, so it logs them out.What's the expected behaviour?
Users should always be able to log in without a trouble
Help us reproduce the bug!
Unsure, it's really random and didn't find a reproducable way
Code Snippet
Console log output
[authentication error]: LOGIN FAIL: "User cancelled OAuth flow."
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: