Skip to content

triauth for MatomoOIDC

Let your team open Matomo with one approval on their own device, through the Login OIDC plugin.

  • Analytics
  • Open source
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

  1. In Matomo, open Administration › Marketplace, find Login OIDC, and install it.

  2. Open oidc.triauth.org and enter your domain. Paste Matomo's redirect address, https://analytics.example.com/index.php?module=LoginOIDC&action=callback&provider=oidc with your own Matomo address in place of analytics.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  3. Open Administration › General Settings and find the LoginOIDC section. Fill in the fields below with your domain in place of example.com, and save.

    FieldValue
    Nameexample.com
    Authorize URLhttps://oidc.triauth.org/example.com/authorize
    Token URLhttps://oidc.triauth.org/example.com/token
    Userinfo URLhttps://oidc.triauth.org/example.com/userinfo
    Userinfo IDsub
    Client ID and Client Secretfrom the bridge
    OAuth Scopesopenid email profile
  4. Open 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

SettingValue
Redirect addresshttps://<your-matomo>/index.php?module=LoginOIDC&action=callback&provider=oidc
Where in MatomoAdministration › General Settings › LoginOIDC
Addressesthe authorization, token, and userinfo addresses go in one by one, as above, since the plugin does not read the discovery document
Userinfo IDsub, since the default id is meant for GitHub
Logout URLleave empty
Auto linkingEnable 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

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.