Umbraco-CMS: OpenIddict `code_challenge` error
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 via host.example.com does not.
Specifics
The error message after logging into /umbraco/login is as follows:
error:invalid_request
error_description:The mandatory 'code_challenge' parameter is missing.
error_uri:https://documentation.openiddict.com/errors/ID2029
Steps to reproduce
On a fresh install of Umbraco 14.1.0, run the following command:
dotnet run --urls "http://0.0.0.0:80"
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.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (10 by maintainers)
I’ve closed the PR with a workaround in the comments. https://github.com/umbraco/Umbraco-CMS/pull/17319#issuecomment-2470676808
Ultimately, it’s an unsafe setup and you need to be very careful what you’re doing here, we intend to help you do the right thing so for now we don’t want to support things that might accidentally leave you open to an easy security attack.
Please take a look at this PR
https://github.com/umbraco/Umbraco-CMS/pull/17319
hope you approve and merge it soon x)