[keycloak-user] Keycloak SAML response redirection stuck in loop after logging in

x wasedaxiao at gmail.com
Sat Sep 8 21:31:50 EDT 2018


Hello

I am using Keycloak as IdP integrated with my application(SP) by using
SAMLFilter adapter. After authentication is successful by checking the SAML
assertion response from Keycloak containing the expected username, the
redirect visited Keycloak again which resulted "You are already logged in"
on my Chrome screen.

The same question was asked on stackoverflow and we have same phenomenon.

https://stackoverflow.com/questions/50681822/keycloak-saml-redirection-stuck-in-loop-after-logging-in

I see there is a Javascript code below with a response form together on my
Chrome dev tool which likely redirects to Keycloak again instead of SP.

<SCRIPT> if (typeof history.replaceState === 'function') {
history.replaceState({}, "some title", "
http://localhost:6161/auth/realms/UAAAltDemo/login-actions/authenticate?client_id=CCenter_SSOSAML&tab_id=CM4uq1MRqng");
}</SCRIPT>

Could some please help how to fix the problem? Where I need to configure to
workaround this.

Best Regards,
Xj


More information about the keycloak-user mailing list