The purpose of this document is to guide you through the installation process of the usage of Keycloak in Rocket.Chat. This IDP is used by Gazelle tools to authenticate users.
Base documentation is available on Rocket.Chat.
Rocket.Chat uses specific roles to manage permissions.
It is possible to synchronize Rocket.Chat roles with Keycloak roles.
As Rocket.Chat is using realm OAuth2 userinfo
endpoint for retrieving roles, it is not possible to map Gazelle roles at realm level.
So roles should be mapped directly in Gazelle/Keycloak user federation.
If a user with admin_role
in Gazelle should have admin
role in Rocket.Chat, admin_role=admin
should be added in “Role Mappings” as documented in installation.
If all users must have specific roles in Rocket.Chat, like user
, add these roles in Gazelle realm :
Add them as default roles :
Create a rocketchat client as described in installation. For client ID, use “rocketchat”.
Once connected as an admin in Rocket.Chat, go to “Administration” in top left menu.
In Settings sub-menu, click on OAuth.
Click on “Add custom oauth” button at top right. Use “gazelle” as unique name.
Open Gazelle entry and configure the service :
https://fqdn/auth
)Click on “Save changes”.
It is now possible to login against Gazelle users with Rocket.Chat.