Matomo#
Let Matomo sign its users in with accounts from your Plone site, using the RebelOIDC plugin.
Note
Verified on 2026-09-28.
The examples use https://id.example.org as the issuer and
https://stats.example.org as Matomo.
1. Register the client#
Follow Register an OAuth client with:
Field |
Value |
|---|---|
Client ID |
Any, for example |
Redirect URI |
|
Grant |
Authorization code |
Scope |
|
Secret |
Yes. Matomo is a confidential client |
The redirect URI is matched exactly, query string included.
Capture the client secret from the response. It is shown once.
2. Configure Matomo#
Install and activate the RebelOIDC plugin. Then, as a super user, open and find the RebelOIDC section:
Setting |
Value |
|---|---|
Name |
The label on the login button, for example |
Authorize URL |
|
Token URL |
|
Userinfo URL |
|
Logout URL |
empty |
Userinfo ID |
|
Username Attribute from OIDC claim |
|
Fallback to Email |
on, the default |
Client ID |
The client ID from step 1 |
Client Secret |
The client secret from step 1 |
OAuth Scopes |
|
Redirect URI override |
empty |
Restrict user login with specific role |
empty |
Enable auto linking |
on, to link existing Matomo users by email |
Create new users when users try to log in with unknown OIDC accounts |
on or off; see below |
Initial site id |
|
Save the settings.
Verify#
Sign out of Matomo. Its login page offers a button with the Name you set.
Choosing it takes you to your Plone site, which asks you to approve Matomo once.
You come back to Matomo signed in. An existing user with the same email address is the one signed in, not a new, empty account.
Known quirks#
The accounts are linked by Userinfo ID.
subis the Plone user id, which never changes.preferred_usernameis only the name a new Matomo user is given.Auto linking needs the
emailscope. It matches existing Matomo users by theemailclaim. Without the scope, each existing user gets a second, empty account.New users: with account creation on, anybody who can sign in to your Plone site can get a Matomo user. With Initial site id at
none, they see nothing until a super user grants them a site. To keep Matomo to some people, restrict the client to their groups instead.Leave Logout URL empty. This server has no OpenID Connect logout endpoint.
Leave the role restriction empty. It reads a
rolesclaim, which this server does not issue. Use Matomo's own permissions, or the client's Allowed groups.The secret travels in the request body (
client_secret_post), which this server accepts.