redirect_uri with keycloak 18 causes an error
See original GitHub issueUsing @https://github.com/dsb-norge@2.1.4-beta
with keycloak 18 will produce an error when trying to logout:
invalid param redirect_uri
The Breaking Change in Keycloak is described in the Release Notes - Section “Migration from 17.0 -> OpenID Connect Logout”.
The problem can be fixed by updating keycloak-js
to version 18.0.0
.
Issue Analytics
- State:
- Created a year ago
- Reactions:8
- Comments:11 (2 by maintainers)
Top Results From Across the Web
keycloak Invalid parameter: redirect_uri - Stack Overflow
Another way to solve the issue, is to view the Keycloak server console output, locate the line stating the request was refused, copy...
Read more >Invalid redirect uri for "Valid Redirect URIs with https://*"
I am getting “Invalid redirect uri” on the keycloak sso page while adding “https://" on the “Valid Redirect URIs” field. "http://” is working...
Read more >Keycloak 18.0.0 released
If your application directly uses links to logout endpoint with the redirect_uri parameter, you may be required to change this as described ...
Read more >[keycloak-user] Keycloak invalid redirect_uri with port 0?
Ultimately, my issue was caused by my reverse proxy server IP not being ... 18:28:02.813 ERROR 32174 --- [nio-8042-exec-7] o.k.adapters.
Read more >OIDC code contains session_state in redirect URI ... - Red Hat
&code=..." . Since this URL is not secured, it's not intercepted by the Keycloak adapter, hence why "code" and "session_state" are kept in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As previously mentioned in other issues we are keeping keycloak-js at the current version because of redhat-sso using said version. So it won’t be updated until there is a redhat-sso version with corresponding keycloak version.
In the release notes you linked there is also a way to make
redirect_uri
work with 18+ versions of keycloak@theolevisage yeah, it is indeed. So we can bump up the keycloak-js dependency. And won’t need the workaround to support old format