umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.36k stars 2.64k forks source link

Umbraco 14 - "The specified 'redirect_uri' is not valid for this client application." error when trying to login after a certain time period #16741

Closed jovanzlatanovic closed 2 days ago

jovanzlatanovic commented 3 days ago

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

14.0.0

Bug summary

Getting an error:invalid_request after leaving an Umbraco site running for a while when trying to login. Error appears for any login method (local and SSO).

Specifics

Might be related to: https://github.com/umbraco/Umbraco-CMS/issues/16179; but I am not visiting the site behind a proxy.

Error image: image

Steps to reproduce

It appears to happen randomly after leaving the website running after a while.

Try to login after an unspecified amount of time.

Expected result / actual result

Expecting to be able to login, actual is error returned in json format.

github-actions[bot] commented 3 days ago

Hi there @jovanzlatanovic!

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 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:

AndersBrohus commented 2 days ago

Try set the "BackOfficeHost" and "UmbracoApplicationUrl" - We do not experience it after those two where set :)

  "Umbraco": {
    "CMS": {
      "WebRouting": {
        "UmbracoApplicationUrl": "SET YOUR URL"
      },
      "Security": {
        "BackOfficeHost": "SET YOUR URL"
      }
    }
  },
jovanzlatanovic commented 2 days ago

Hi @AndersBrohus, that seems to have fixed it. Didn't get the error anymore since this morning so I'm guessing it's good (for now).

Thanks for the help! 👏

I'll close the issue since there is a solution, but if anyone feels like this needs fixing feel free to reopen it. :)