[keycloak-user] Keycloak JS adapter iframe origin
Pedro Pedro
sinsn_619 at abv.bg
Mon Aug 27 06:03:38 EDT 2018
We have angular app and we use nginx in a docker image to deploy it.
I'm trying to pass the keycloak url to the js adapter by using a constant like this: new Keycloak(url: '/idp');
and in nginx's config I try to proxy that constant to the passed args to the docker image: location /idp {
proxy_pass ${IDP_PROTOCOL}://${IDP_ADDR}/${IDP_CONTEXT_PATH}; }
When the logic in checkLoginIframe tries to send cross-origin request it fails because the adapter uses our app's origin.
Is there any way to be able to proxy that via nginx?
If I disable checkLoginIframe can the session be tracked when expired and etc?
More information about the keycloak-user
mailing list