Hello
I'm using the OpenId connector in Liferay 6.2 CE, to sign in with keycloak.
The question is when I click the SignIn button the behavior is different depending on the location / url of the Liferay and keycloack.
I guve you 2 Scenarios example:
Scenario 1: Different domains
Url Liferay is http://work_domain_and_port/liferay and keycloak url is http://other_domain_and_port/auth.
The result is the expected, opens keycloak login page on the same browser tab.
Scenario 2: Same domain but different access url
Url Liferay is http://work_domain_and_port/liferay and keyclocak url is http://other_domain_and_port/auth.
The result is the expected, opens keycloak login page on the same browser tab.
Scenario 3: Same domain and url’s
Both are in the same domain (say in a cluster environment), for example http/docker.localhost/liferay and http://docker.localhost/auth.
The result is not expected. When you click the SignIn button, the Liferay window is "disabled", but does not open the keycloak login.
Note: In developer tools from browser, when I inspect signIn button we can see
< a class="" data-redirect="false" href="http://docker.localhost/liferay/c/portal/login?p_l_id=20185" id="" role="menuitem" title="Sign In" >
If I replace href with onclick="location.href = the expected result is obtained.
Can you help me with this? Have you ever encountered this problem?
Thank you in advance
Eunice da Silva
Hello
I'm using the OpenId connector in Liferay 6.2 CE, to sign in with keycloak.
The question is when I click the SignIn button the behavior is different depending on the location / url of the Liferay and keycloack.
I guve you 2 Scenarios example:
Scenario 1: Different domains
Url Liferay is http://work_domain_and_port/liferay and keycloak url is http://other_domain_and_port/auth.
The result is the expected, opens keycloak login page on the same browser tab.
Scenario 2: Same domain but different access url
Url Liferay is http://work_domain_and_port/liferay and keyclocak url is http://other_domain_and_port/auth.
The result is the expected, opens keycloak login page on the same browser tab.
Scenario 3: Same domain and url’s
Both are in the same domain (say in a cluster environment), for example http/docker.localhost/liferay and http://docker.localhost/auth.
The result is not expected. When you click the SignIn button, the Liferay window is "disabled", but does not open the keycloak login.
Note: In developer tools from browser, when I inspect signIn button we can see
< a class="" data-redirect="false" href="http://docker.localhost/liferay/c/portal/login?p_l_id=20185" id="" role="menuitem" title="Sign In" >
If I replace href with onclick="location.href = the expected result is obtained.
Can you help me with this? Have you ever encountered this problem?
Thank you in advance
Eunice da Silva