OpenID Connect
An OIDC authority delegates the first factor to an identity provider your company already runs. The browser leaves for the provider, comes back with a code, and Meerkat exchanges it for an identity token it verifies against the provider's published keys. Nothing is taken on trust.
Available in the community and Enterprise editions.
An OIDC button appears on the sign-in page as soon as the authority is enabled. Several OIDC authorities can live side by side: two providers, two buttons.
Set it up
Prerequisites: an administrator account at the provider, allowed to create a client (an application registration in Entra ID), and the public name people reach the data plane by, for instance https://apps.acme.io.
1. Start the authority in Meerkat
Open Infra > Authentication and click the + button (New authority) at the bottom right. Choose OpenID Connect and type a Name: it is what the button on the sign-in page will say, for instance Acme SSO.
The top of the drawer, Register these on the authority, now shows the Redirect URI with a copy button. Copy it: the provider needs it in the next step. It has the shape /login/<identifier>/callback, on the data plane host, the identifier being derived from the name (Name and identifier shows it, and it is frozen once the authority is created):
https://apps.acme.io/login/acme-sso/callback

localhost, register the public domain name instead: a provider handed a localhost sends everybody back to a machine that is not theirs. The drawer says so under the address.The sign-in buttons also appear on the console's own sign-in page, on the administration port. A sign-in started there calls back on that host, which is a different redirect URI. If you want SSO on the console too, register both addresses with the provider.
2. Create the client at the provider
Create a confidential client (one with a secret) using the standard authorization code flow, paste the Redirect URI as its only valid redirect URI, and make sure it may ask for the scopes openid profile email. Note three values: the issuer, the client ID and the client secret. The Keycloak and Entra ID examples below give the exact clicks.
Issuers look like this:
| Provider | Issuer |
|---|---|
| Keycloak | https://sso.acme.io/realms/main |
| Microsoft Entra ID | https://login.microsoftonline.com/<directory-id>/v2.0 |
| Okta | https://acme.okta.com/oauth2/default |
| Auth0 | https://acme.eu.auth0.com |
https://accounts.google.com |
The issuer is the address before /.well-known/openid-configuration: open <issuer>/.well-known/openid-configuration in a browser, and the issuer it shows is the value to type.
3. Fill in the authority
Back in the drawer:
| Field | What to put in it |
|---|---|
| Issuer | the provider's issuer, from the table above |
| Client ID | the client the provider gave you |
| Client secret | its secret. Paste it, then click Move into the vault: a secret typed in clear blocks Create until it is put away, and the field then holds a reference such as $acme-sso-secret |
| Allowed e-mail domains | comma separated, for instance acme.io. Empty accepts every address the provider knows |
Click Create. A new authority is created switched off.
The domain allow-list is compared case-insensitively against what follows the last @, and a leading @ in the list is optional: acme.io and @acme.io both work. When the list is not empty and the provider returns no address at all, the sign-in is refused rather than let through. A trailing slash on the issuer is trimmed, so https://acme.eu.auth0.com/ and https://acme.eu.auth0.com are the same authority.
4. Test the connection
Open the authority again and click Test the connection, at the bottom of the drawer. It fetches the discovery document and the signing keys: "The authority answered" means the issuer is right and reachable. It does not check the client secret, which only a real sign-in exercises.
5. Switch it on and sign in once
Turn on the switch on the authority's row. Then, in a private window, open https://apps.acme.io/login: a button with the authority's name is under the form. Click it, sign in at the provider, and you come back to Meerkat.
A first sign-in creates an account that reaches nothing yet: the person lands on the waiting page. A refusal names its cause on the page and in the gateway's log; the usual ones are a redirect URI that does not match to the letter, or a wrong client secret.
6. Place the new account
The account now appears in Application > Users. Put it in a tenant and grant it roles (Tenants, the tenant, Members; or Application > Members on a single-tenant gateway). At the person's next page, the applications open. To do that for everybody who comes through this provider, write a group rule instead: see Who the person becomes here.
Example: Keycloak
In the Keycloak admin console, in the realm your users live in:
- Clients, Create client. Client type OpenID Connect, Client ID
meerkat, then Next. - Client authentication On (a confidential client), Standard flow ticked, then Next.
- Valid redirect URIs: the Redirect URI copied from Meerkat,
https://apps.acme.io/login/acme-sso/callback. Save. - Credentials tab: copy the Client secret.
- The issuer is
https://<keycloak host>/realms/<realm>; Realm settings, Endpoints, OpenID Endpoint Configuration opens the discovery document that names it.
The scopes profile and email are default client scopes of a new Keycloak client, so openid profile email works as it is. Keycloak sends no groups by default: to receive them, open the client's Client scopes, its dedicated scope (meerkat-dedicated), Add mapper, By configuration, Group Membership, with Token Claim Name groups and Full group path off.
Example: Microsoft Entra ID
In the Microsoft Entra admin center:
- App registrations, New registration. A name, Accounts in this organizational directory only.
- Redirect URI: platform Web, the Redirect URI copied from Meerkat. Register.
- On the Overview, copy the Application (client) ID and the Directory (tenant) ID.
- Certificates & secrets, New client secret: copy its Value (not the Secret ID); it is shown only once.
- The issuer is
https://login.microsoftonline.com/<Directory (tenant) ID>/v2.0.
To receive groups, Token configuration, Add groups claim: Entra sends the groups' object ids in groups. Entra does not say whether an address is verified, so a first sign-in through it is never joined to an existing account by address: that person connects Entra ID from their profile instead.
What the callback is checked against
Every sign-in is a full verification, not a trust exercise:
- the discovery document is read from
<issuer>/.well-known/openid-configurationand cached for an hour; the signing keys come from itsjwks_uriand are cached for fifteen minutes; statemust match the one Meerkat minted, and PKCE (S256) is always sent, secret or no secret;- the identity token's signature is verified against the published keys - an
algofnoneis refused outright; issmust be the configured issuer, the audience must contain the client ID,expmust be in the future, andnoncemust match.
A provider that returns no id_token is told so plainly: check that the openid scope is granted.
Claims
| Identity | Claim | Changeable |
|---|---|---|
| Subject, the stable link to the account | sub |
no |
email |
no | |
| Address vouched for | email_verified |
no |
| Full name | name |
no |
| Username | preferred_username, falling back to email |
yes, usernameClaim |
| Groups | groups |
yes, groupsClaim |
The requested scopes default to openid profile email.
usernameClaim, groupsClaim, scopes and useUserinfo - the last one merges what the provider's userinfo endpoint says into claims the token left out - have no box in the console. They live in the authority's config, as GET /api/auth-providers returns it on the admin port:
{
"id": "acme-sso",
"kind": "oidc",
"name": "Acme SSO",
"enabled": true,
"config": {
"issuer": "https://sso.acme.io/realms/main",
"clientId": "meerkat",
"clientSecret": "$acme-sso-secret",
"allowedDomains": ["acme.io"],
"scopes": ["openid", "profile", "email", "groups"],
"usernameClaim": "upn",
"groupsClaim": "roles",
"useUserinfo": true
},
"mfaExempt": true
}
To change them, send the whole object back with PUT /api/auth-providers/acme-sso and a control-plane token, or edit the authority in a configuration file. A secret left empty in the body keeps the one stored.
Who the person becomes here
An identity from a provider is resolved to a local account in this order:
- an existing link for this authority and this
sub- the stable answer; - an account holding the same address, but only if the provider says that address is verified, and only once that account has proved it is theirs: a code mailed to the account's own address, then its second factor if it has one. Without a mail relay, the person is told to sign in with the existing account and connect the authority from the profile instead. An unverified address is never matched at all: it would be an account takeover;
- a new account, if this authority is allowed to create one.
Nothing is joined on the provider's word alone, for any account, root included: see Joining an authority to an existing account.
The link is recorded per authority, so someone who signed up with a local password and later moves to SSO keeps their account, their tenants and their roles. There is no source column on an account: an account can be known by several authorities at once, and someone may sign in through any of them.
A freshly created account reaches nothing. It lands in the waiting room until an administrator places it in a tenant and grants roles.
The groups the provider reports are recorded on the link. They turn into memberships and roles only through a group rule on a tenant.
The two policies
At the bottom of the drawer:
Self-registration - Allowed, Refused, or inherited from the application switch. Refused means only people already linked may come in: a first arrival is turned away with "not invited" rather than given an account.
Exempt from Meerkat's two-factor - ticked, Meerkat's own second factor is skipped for people who came in this way: the provider already challenged them, and asking twice is a tax, not a defence. A new authority starts ticked.
And the skip is a declaration, not a proof. Meerkat does not read the acr or amr claims, so it cannot tell whether the provider really did ask for a second factor. Leave the box ticked only where you know it did.
In the admin API and in a configuration file, the box is mfaExempt.