[keycloak-user] check-sso not working as expected with iframe
Mohsin Ilyas
mohsin_981 at hotmail.com
Wed Aug 21 14:32:00 EDT 2019
Missed the code in original email
const keycloak = Keycloak('/keycloak.json');
keycloak.init({onLoad: ‘check-sso'})
.success(authenticated => {
if (authenticated) {
//do something
}
})
.error(error => {
console.log(error)
});
________________________________
From: Mohsin Ilyas
Sent: Wednesday, August 21, 2019 11:29 PM
To: keycloak-user at lists.jboss.org <keycloak-user at lists.jboss.org>
Subject: check-sso not working as expected with iframe
Hi,
Below is my simple logic in my application to re-establish connection with keycloak when a page is reloaded. However, the iframe doesn’t seem to work well with ‘check-sso’. Because, I have opened the application in one tab and in other tab I have opened keycloak but when I logout of keycloak my application doesn’t get logout, however, if I use ‘login-required’ the application logs out simultaneously with keycloak. Can someone take a look, or help me with this? (P.s: I have tried to set checkIframLogin: true in the init options but it doesn’t work for me)
Thanks.
More information about the keycloak-user
mailing list