Open verbeckii opened 2 years ago
Hi, it is known, very old issue. I have workaround it by
window.location.href = "https://<keycloak_url>/auth/realms/<realm>/protocol/openid-connect/logout?redirect_uri=https%3A%2F%2F<chat_url>";
Hi, it is known, very old issue. I have workaround it by
- Go to "Administration -> Layout -> Custom scripts
- In "Custom Script for Logout Flow" add
window.location.href = "https://<keycloak_url>/auth/realms/<realm>/protocol/openid-connect/logout?redirect_uri=https%3A%2F%2F<chat_url>";
thanks
I also set custom script for logout flow and its work fine
okay now I have only one question How I can make auto login via Keycloak provider?
Right now when unauthorized users go to my rocket chat they see login page and should firstly click Keycloak button
How I can instantly redirect unauthorized users to Keycloak Login page?
I'm tried to do something like your solution and create custom script for unauthorized users by it's just not working
For testing case I wrote console.log('test script')
in both unauthorized and authorized sections
And custom sctip works as expect for authorized and doesn't work for unauthorized(on login page)
when i use this script for SSO its work and it logout completely, but redirect happens twice once for scripts another for default rocket chat. how can i resolve this? Thanks for help. @verbeckii
Description:
I set up Keycloak authentication and noticed that not all functions work Keycloak is a SSO provider, which means not only a user provider, but also provides additional features such as Singel Sign In and Single Sign Out between all applications connected to Keycloak.
Steps to reproduce:
Expected behavior:
I expected that Rocket Chat can be working with Keycloak Single Sign On and Single Sign Out
Actual behavior:
Actual behavior is Keycloak work with Rocket Chat Only like users provider and not like full SSO Is it any way how to do Single Sign On and Single Sign Out too?
Server Setup Information:
Client Setup Information
Additional context
Relevant logs: