From 1ee6fd713059be039c6dcd0350c7227650aa239c Mon Sep 17 00:00:00 2001 From: stianst Date: Fri, 9 Nov 2018 09:04:45 +0100 Subject: [PATCH] KEYCLOAK-8619 Fix check-sso when there is no cookie --- .../js/src/main/resources/login-status-iframe.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/adapters/oidc/js/src/main/resources/login-status-iframe.html b/adapters/oidc/js/src/main/resources/login-status-iframe.html index 30e30d882b..94dd2963f6 100755 --- a/adapters/oidc/js/src/main/resources/login-status-iframe.html +++ b/adapters/oidc/js/src/main/resources/login-status-iframe.html @@ -52,7 +52,15 @@ clientId: clientId, origin: origin } - checkCookie(); + if (!cookie) { + if (sessionState != '') { + callback('changed'); + } else { + callback('unchanged'); + } + } else { + checkCookie(); + } } else { callback('error'); }