Skip to content

triauth for MattermostOIDC

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

  • Chat
  • Open source
Sign-in through
OpenID Connect bridge
Available in
The paid plans
Set up in
System Console › Authentication › OpenID Connect

About Mattermost

Mattermost is a team messaging platform with channels, direct messages, calls, and workflow tools. Engineering, security, and government teams run it on their own infrastructure, or let Mattermost host it for them.

Connect Mattermost to triauth

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

Sign-in with OpenID Connect is part of Mattermost's paid plans.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Mattermost's redirect address, https://chat.example.com/signup/openid/complete with your own Mattermost address in place of chat.example.com, and click Connect app. The bridge gives you a client ID and a client secret.
  2. In Mattermost, open System Console › Authentication › OpenID Connect and choose OpenID Connect (Other) as the service provider. Enter https://oidc.triauth.org/example.com/.well-known/openid-configuration, with your domain in place of example.com, as Discovery Endpoint, paste the client ID and the client secret, and give the button a name, such as your domain. Save, then restart the Mattermost server.
  3. Open Mattermost's sign-in page and click the new button.

Checkpoint

Mattermost'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 Mattermost account the first time they sign in. To let only one team in, limit the app to a group when you connect it.
  • Once Mattermost signs people in this way, their first name, last name, and username come from their identity and are no longer edited in Mattermost.
  • Mattermost's Enterprise plans can read the groups published at your domain into a user attribute for access rules. Membership of teams and channels is still managed in Mattermost.

For the person who connects the app

SettingValue
Redirect addresshttps://<your-mattermost>/signup/openid/complete
Where in MattermostSystem Console › Authentication › OpenID Connect › OpenID Connect (Other), or the OpenIdSettings keys in config.json
Discovery Endpointhttps://oidc.triauth.org/<your domain>/.well-known/openid-configuration
Additional scopesgroups, if an Enterprise plan links the claim to a user attribute

Mattermost keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Mattermost's OpenID Connect guide explains every setting.

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.