Umbraco-CMS icon indicating copy to clipboard operation
Umbraco-CMS copied to clipboard

umbraco/oauth_complete?code=... stuck after umbraco/logout

Open PeterKvayt opened this issue 1 year ago • 6 comments

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

15.2.0

Bug summary

I have faced with infinite loading after login.

Image

Specifics

No response

Steps to reproduce

  1. Fresh umbraco install
  2. Open site in browser
  3. Go to /umbraco page
  4. Enter your creds
  5. Logout from umbraco (you will be redirected to /umbraco/logout page)
  6. Click "Sign in with Umbraco" (you will be redirected to /umbraco/login page) Image
  7. Enter your creds and login
  8. Now you will stuck with infinite loading

Expected result / actual result

Expected result: succeed login Actual result: infinite loading


This item has been added to our backlog AB#49174

PeterKvayt avatar Feb 13 '25 20:02 PeterKvayt

Hi there @PeterKvayt!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

  • We'll assess whether this issue relates to something that has already been fixed in a later version of the release that it has been raised for.
  • If it's a bug, is it related to a release that we are actively supporting or is it related to a release that's in the end-of-life or security-only phase?
  • We'll replicate the issue to ensure that the problem is as described.
  • We'll decide whether the behavior is an issue or if the behavior is intended.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

github-actions[bot] avatar Feb 13 '25 20:02 github-actions[bot]

Yep, I'm see this same behavior, no errors and if you remove the oauth_complete?code=xxxx it loads the backoffice. I'm not sure what is causing it as it does not always happen.

tobimax avatar Mar 16 '25 16:03 tobimax

With some more testing, I think that it's due to being already logged in. If you if you remove the oauth_complete?code=xxxx and then log out then the login works again.

It could be being caused by having the multiple sessions disabled. I'll test a bit more.

tobimax avatar Mar 17 '25 11:03 tobimax

With some more testing, I think that it's due to being already logged in. If you if you remove the oauth_complete?code=xxxx and then log out then the login works again.

It could be being caused by having the multiple sessions disabled. I'll test a bit more.

Did you find anything else? We are experiencing it today for the first time after logging out in firefox, but our clients are having this issue in all their browsers. Visiting /umbraco another tab (or removing the auth_complete from URL solves it, but is rather cumbersome way of loging in.

seanhakbb avatar May 05 '25 13:05 seanhakbb

@seanhakbb It would be really interesting to see what happens in the console of the browser when you get stuck on the /umbraco/oauth_complete URI. It is supposed to capture the code in the URL, then call the server to exchange that code for an access_token, and finally redirect you to the Backoffice on /umbraco. The fact that it works if you do that manually suggests that it has done the exchange, but something went wrong in the router redirect mechanism.

Also, if you can upgrade to 16.0, could you check if this still happens, please?

iOvergaard avatar Jun 13 '25 07:06 iOvergaard

@iOvergaard Will do! Thank you

seanhakbb avatar Jun 13 '25 07:06 seanhakbb

@iOvergaard It is still reproducing in v16.0.0

PeterKvayt avatar Jul 08 '25 11:07 PeterKvayt

Do you have any errors in the console when that happens, @PeterKvayt?

iOvergaard avatar Jul 08 '25 12:07 iOvergaard

There is no error in the console logs when it happens.

ctolkien avatar Aug 19 '25 02:08 ctolkien