[keycloak-dev] Calling JavaScript logout on a URL with a fragment redirects to a URL with URL still encoded

Alexander Schwartz alexander.schwartz at gmx.net
Thu Jan 14 23:27:05 EST 2016


Hello,

using the Keycloak JavaScript adapter I found that the logout from a URL 
with a fragment (http://localhost:9090/ajax/index.html#xxxxx) leads to a 
redirect with a rewritten fragment 
(http://localhost:9090/ajax/index.html?redirect_fragment=xxxxx)

As my application JavaScript single-page app is parsing the fragment, 
this is an issue for me.

I created https://issues.jboss.org/browse/KEYCLOAK-2323 together with a 
pull request https://github.com/keycloak/keycloak/pull/2033

This includes a fix that worked for me based on both Keycloak 1.7.0 and 
1.8.CR1.

Please let me know if you would like me to add/change more code, and if 
this is the right code to change.

I'm also missing a place where to put some tests for this. Where would I 
find the test suite for this?

Thanks,
Alexander.

-- 
Alexander Schwartz (alexander.schwartz at gmx.net)
http://www.ahus1.de



More information about the keycloak-dev mailing list