-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
OpenIddict code_challenge
error
#16782
Comments
Hi there @ak2426! 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 🤖 🙂 |
Hi @ak2426 👋 Thanks for reaching out! I was able to reproduce it, we will have a look 🙂 |
One thing though, can you clarify why are you running |
Thanks!
The In our current setup we have Umbraco running on 2 servers behind a load balancer (F5), which also takes care of HTTPS. We need Umbraco to be accessible in this way because F5 uses the hostname + port. |
Hi @ak2426 Looking through this, you may be hitting a few different issues. code_challenge is missing Are you still seeing the error if you do that? Accessing Umbraco from another host {
"Umbraco": {
"CMS": {
"Security": {
"BackOfficeHost": "http://host.example.com"
}
[the rest]
}
} This might help alleviate any confusion running Umbraco in a place where it can't see its real host, for example in a Docker environment. |
Hi @iOvergaard, unfortunately neither suggestion fixed the problem. In fact, navigating to http://localhost and clicking "Open Umbraco" now gives a new error: error:invalid_request
error_description:The specified 'redirect_uri' is not valid for this client application.
error_uri:https://documentation.openiddict.com/errors/ID2043 |
@ak2426 The BackOfficeHost parameter must match the one you are accessing Umbraco from. However, Umbraco should be able to resolve any relative requests, so there might be something we need to look into. Another note, if you want to use regular HTTP, you need to ensure the |
Any Update on this ? "BackOfficeHost": "http://host.example.com" and this to false : UseHttps it did not work I think (Think) it has something to do with cookies cross site with http |
Had the same issue, I simply switched to HTTPS in my IIS and it worked
|
Had the same issue, I tried all the above solutions, but none of them worked. |
any update on this ? |
Update the web.config as shown below; it worked for me.
|
I am getting this error too. |
after some debugging , The Issue is resulted from PKCE when developing on a non https server. so the fix for this would be simply if the configuration |
Please take a look at this PR hope you approve and merge it soon x) |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
14.1.0
Bug summary
Logging in via
localhost
works while logging in viahost.example.com
does not.Specifics
The error message after logging into
/umbraco/login
is as follows:Steps to reproduce
On a fresh install of Umbraco 14.1.0, run the following command:
Verify that logging into:
Expected result / actual result
After a successful login, I expect to land on the dashboard. Instead, I see the error message listed above.
The text was updated successfully, but these errors were encountered: