triauth for Rocket.ChatOIDC
Let your team into Rocket.Chat with one approval on their own device, and no Rocket.Chat passwords.
- 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
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/triauthwith your own Rocket.Chat address.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.
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.Field Value Enable on URL https://oidc.triauth.org/example.comToken Path /tokenIdentity Path /userinfoIdentity Token Sent Via Header Authorize Path /authorizeScope openid email profile groupsId the client ID from the bridge Secret the client secret from the bridge Button Text Sign in with example.comUsername field preferred_usernameKey Field Email 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
groupsand fill in the channel map.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-rocketchat>/_oauth/<custom OAuth name>, shown at the top of the panel |
| Where in Rocket.Chat | Manage › Workspace › Settings › OAuth › Add custom OAuth |
| Addresses | the base URL plus the three paths above, since Rocket.Chat does not read the discovery document |
| Token Sent Via | Payload or Header, both work |
| Identity Token Sent Via | Header, so that the userinfo request carries the access token as a bearer token |
| Username field | preferred_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 |
| Groups | Roles/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
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to publish teams and map them to channels.
- Read Rocket.Chat's custom OAuth guide for every setting Rocket.Chat offers.
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.