triauth for MatomoOIDC
Let your team open Matomo with one approval on their own device, through the Login OIDC plugin.
- Sign-in through
- OpenID Connect bridge
- Available in
- Matomo On-Premise 5, with the Login OIDC plugin
- Set up in
- Administration › General Settings › LoginOIDC
About Matomo
Matomo is web analytics software, an alternative to Google Analytics that you run on your own server. Teams use it to see how many people visit their websites, where they come from, and what they do there, while the data stays in-house.
Connect Matomo to triauth
Matomo signs people in through the triauth OpenID Connect bridge, with the Login OIDC plugin from the Matomo Marketplace. Once connected, the login screen 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 Matomo password, and when someone leaves, removing their identity records at your domain ends their access to Matomo as well.
How it works
In Matomo, open Administration › Marketplace, find Login OIDC, and install it.
Open oidc.triauth.org and enter your domain. Paste Matomo's redirect address,
https://analytics.example.com/index.php?module=LoginOIDC&action=callback&provider=oidcwith your own Matomo address in place ofanalytics.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Open Administration › General Settings and find the LoginOIDC section. Fill in the fields below with your domain in place of
example.com, and save.Field Value Name example.comAuthorize URL https://oidc.triauth.org/example.com/authorizeToken URL https://oidc.triauth.org/example.com/tokenUserinfo URL https://oidc.triauth.org/example.com/userinfoUserinfo ID subClient ID and Client Secret from the bridge OAuth Scopes openid email profileOpen Matomo's login screen and click the button with your domain's name.
Checkpoint
Matomo's login screen shows a new button with your domain's name. 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
- People who already have a Matomo account connect it once from their own Security settings with Link account. Tick Create new users in the plugin's settings if people without an account should get one at their first sign-in, and limit the app to a group when you connect it to let only one team in.
- Roles and website access are managed in Matomo. The groups published at your domain are not used.
- The plugin is a community plugin by an independent developer, for Matomo 5.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect address | https://<your-matomo>/index.php?module=LoginOIDC&action=callback&provider=oidc |
| Where in Matomo | Administration › General Settings › LoginOIDC |
| Addresses | the authorization, token, and userinfo addresses go in one by one, as above, since the plugin does not read the discovery document |
| Userinfo ID | sub, since the default id is meant for GitHub |
| Logout URL | leave empty |
| Auto linking | Enable auto linking connects accounts whose Matomo login equals the identifier |
The plugin keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. The plugin's Marketplace page explains every setting.
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 limit Matomo to one team when you connect it.
- Read the Login OIDC plugin page for every setting it 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.