Integrate with Rocket.Chat
Support level: Community
What is Rocket.Chat?
Centralize real-time messaging, voice, video, AI, and apps for secure, reliable and unified communication among internal and external stakeholders.
Preparation
The following placeholders are used in this guide:
rocket.companyis the FQDN of the Rocket.Chat installation.authentik.companyis the FQDN of the authentik installation.
This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.
authentik configuration
In authentik versions earlier than 2026.5, all Redirect URIs are automatically treated as Authorization type. If you are using one of these older authentik versions, add only the Authorization URL to your Redirect URIs and do not configure a Post Logout URI.
To support the integration of Rocket.Chat with authentik, you need to create an application/provider pair in authentik.
Create an application and provider in authentik
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Applications and click New Application to open the application wizard.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
- Choose a Provider type: select OAuth2/OpenID Connect as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
- Note the Client ID and Client Secret values because they will be required later.
- Add a Redirect URI of type
StrictAuthorizationashttps://rocket.company/_oauth/authentik. - Select any available signing key.
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
-
Click Submit to save the new application and provider.
Rocket.Chat configuration
This guide uses authentik as the Rocket.Chat custom OAuth name. If you choose a different name, update the redirect URI in authentik to match the callback URL shown by Rocket.Chat.
-
Log in to Rocket.Chat as a system administrator.
-
Navigate to Manage > Workspace > Settings > OAuth.
-
Click Add custom OAuth, enter
authentikas the unique name, and click Add. -
Open the new custom OAuth configuration and configure the following settings:
- Enable: turn the switch on.
- URL:
https://authentik.company/application/o - Token Path:
/token/ - Identity Path:
/userinfo/ - Authorize Path:
/authorize/ - Scope:
openid email profile - Id: the Client ID from authentik
- Secret: the Client Secret from authentik
- Login Style:
Redirect - Button Text:
Login with authentik - Username field:
preferred_username - Email field:
email - Name field:
name
-
Click Save changes.
-
Click Refresh OAuth Services.
To link existing Rocket.Chat users to authentik identities with matching usernames, enable Merge users before users sign in with authentik.
Optional account settings
Navigate to Manage > Workspace > Settings > Accounts and disable the following settings:
- Allow Name Change
- Allow Username Change
- Allow Email Change
- Allow Password Change for OAuth Users
If authentik handles multi-factor authentication, review Accounts > Two Factor Authentication and avoid enabling Rocket.Chat two-factor authentication for OAuth users unless you want them to complete an additional challenge after returning from authentik.
To prevent password self-registration, navigate to Accounts > Registration and set Registration Form to Disabled.
Configuration verification
To confirm that authentik is properly configured with Rocket.Chat, log out of Rocket.Chat and log back in using Login with authentik.