Skip to content

triauth for Rocket.ChatOIDC

Let your team into Rocket.Chat with one approval on their own device, and no Rocket.Chat passwords.

  • Chat
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Starter workspaces and the paid plans
Set up in
Manage › Workspace › Settings › OAuth

About Rocket.Chat

Rocket.Chat is a team chat with channels, direct messages, file sharing, and video calls through integrations. Organizations run it on their own servers when they need to know where their messages live, from companies to government and regulated industries.

Connect Rocket.Chat to triauth

Rocket.Chat signs people in through the triauth OpenID Connect bridge, added as a custom OAuth service. Once connected, the sign-in page shows a button with the text you choose. People on your team click it, type their username, and approve on their own device. Nobody keeps a Rocket.Chat password, and when someone leaves, removing their identity records at your domain ends their access to Rocket.Chat as well.

Custom OAuth is part of Rocket.Chat's Starter workspaces and its paid plans.

How it works

  1. In Rocket.Chat, open Manage › Workspace › Settings › OAuth, click Add custom OAuth, and name it triauth. The panel shows the redirect address, https://chat.example.com/_oauth/triauth with your own Rocket.Chat address.

  2. Open oidc.triauth.org and enter your domain. Paste the redirect address and click Connect app. The bridge gives you a client ID and a client secret.

  3. Back in Rocket.Chat, fill in the fields below with your domain in place of example.com, click Save changes, and then Refresh OAuth Services.

    FieldValue
    Enableon
    URLhttps://oidc.triauth.org/example.com
    Token Path/token
    Identity Path/userinfo
    Identity Token Sent ViaHeader
    Authorize Path/authorize
    Scopeopenid email profile groups
    Idthe client ID from the bridge
    Secretthe client secret from the bridge
    Button TextSign in with example.com
    Username fieldpreferred_username
    Key FieldEmail
  4. Open Rocket.Chat's sign-in page and click the new button.

Checkpoint

Rocket.Chat's sign-in page shows the new button. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve.

Good to know

  • Everyone with an identity at your domain gets a Rocket.Chat account the first time they sign in. To let only one team in, limit the app to a group when you connect it.
  • People who already have a Rocket.Chat account under the same email address are connected to it when you turn on Merge users.
  • Rocket.Chat can add people to channels by the groups published at your domain. Set Roles/Groups field for channel mapping to groups and fill in the channel map.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-rocketchat>/_oauth/<custom OAuth name>, shown at the top of the panel
Where in Rocket.ChatManage › Workspace › Settings › OAuth › Add custom OAuth
Addressesthe base URL plus the three paths above, since Rocket.Chat does not read the discovery document
Token Sent ViaPayload or Header, both work
Identity Token Sent ViaHeader, so that the userinfo request carries the access token as a bearer token
Username fieldpreferred_username, so that the Rocket.Chat username is the person's username, such as john. Left empty, the default, Rocket.Chat chooses a username itself. Key Field stays Email, so that Merge users matches on the identifier, which is unique across domains
GroupsRoles/Groups field for channel mapping and OAuth Group Channel Map, with the claim groups

Rocket.Chat keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Rocket.Chat's custom OAuth guide explains every field.

Next steps

All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.