angular2-keycloak icon indicating copy to clipboard operation
angular2-keycloak copied to clipboard

Why checkLoginIframe should be marked as false?

Open carlosthe19916 opened this issue 8 years ago • 6 comments

I was using this module but I don't know why checkLoginIframe should be marked as false. Is There a problem if I use checkLoginIframe as true?

I tried to mark checkLoginIframe as true and it seems that login don't work after that...

carlosthe19916 avatar Jul 19 '17 15:07 carlosthe19916

When the checkLoginIframe is enabled, an iframe checks the session status. The behavior is supposed to be the same to the javascript adapter. I tested it successfully so maybe it is just a configuration issue ? Can you give me more details about your conf ?

ebondu avatar Jul 20 '17 08:07 ebondu

I tried enabling the checkLoginIframe flag in conjunction with onLoad: check-sso and I got a redirect loop between the app and keycloak. My keycloak server is on a different port then the app (58080 vs. 3000). Is it possible that this is an issue? From the logs below I see that the origins at the message send and recieve don't match:

login iframe LOADED
main.bundle.js:46213 KC_CORE: sending message to iframe frontend-app undefined origin :http://localhost:58080
main.bundle.js:46616 checking iframe message callback..[object Object] http://localhost:3000

Is there a way to solve this?

rraksi avatar Aug 11 '17 11:08 rraksi

here they say that checkLoginIframe caused error after some refresh token intervals https://stackoverflow.com/questions/38206033/aurelia-keycloak-integration

elhay-av avatar Sep 11 '17 14:09 elhay-av

Hi, @rraksi, the port number should not be an issue for checkLoginIframe (I tested iframe + check-sso on different ports).

ebondu avatar Sep 21 '17 09:09 ebondu

redirect loop here to with login-required + checkLoginIframe and React, only on Safari browser (don't know if it is related)

manuFL avatar Jun 17 '20 14:06 manuFL

Hi, which version of the server are you testing ?

ebondu avatar Jun 19 '20 12:06 ebondu