dashy
dashy copied to clipboard
[QUESTION] Keycloak valid redirect_url
Question
Hello,
I use Keycloak v19, and when I configure Client, I only set such as documented :
- Valid redirect url : https://dashy.domain.tld
- Web origins : https://dashy.domain.tld
But I take a keycloak error Invalid parameter: redirect_uri
I’ve try to set Valid redirect url to https://dashy.domain.tld* or https://dashy.domain.tld/, authentication correctly work, but it’s impossible to logout from dashy with error Invalid parameter: redirect_url
Which link is correct to setup Keycloak ? I’ve search into docs and issues and I’ve not found any answers.
Thanks for your product in any cases.
Category
Authentication
Please tick the boxes
- [X] You are using a supported version of Dashy (check the first two digits of the version number)
- [X] You've checked that this question hasn't already been raised
- [X] You've checked the docs and troubleshooting guide
- [X] You agree to the code of conduct
If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated
Where's the error happening, KC side or Dashy side? Is this in the browser console?
The redirect URL of https://dashy.domain.tld should be correct. But maybe there's a bug on Dashy's side.I'll look into it when I get a moment.
In the meantim, not sure if it's any help, but have you seen Troubleshooting --> Keycloak Redirect? And some similar issues: #479, #409, #507, #491, #341, #520
Thanks for reply,
This is a KC side that indicate invalid redirect URL.
I’ve try to setup CORS without success. I’ve read too all of similar issues, but any correction possible found in it.
Hi @vfricou, I ran into the same issue at my end. Not a big deal for me but if you happen to find a solution I'd appreciate if you could update the thread here.
Thanks
Apparently redirect_uri has been deprecated in keycloak since version 18
This can be worked around on the keycloak side using:
bin/kc.[sh|bat] --spi-login-protocol-openid-connect-legacy-logout-redirect-uri=true start
I tried this on keycloak 19.0.1 and it works
However - this switch is intended to be removed in some future keycloak version, so at some point a client fix will be needed.
see https://www.keycloak.org/2022/04/keycloak-1800-released
Keycloak is an open source identity and access management solution
Effectively, @juliannoble starting keycloak with this option permit to fix logout issue.
Thanks for workaround.
That worked for me as well, thanks for sharing @juliannoble
This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.
This issue was automatically closed because it has been stalled for over 6 weeks with no activity.