SAML 2.0
A SAML authority does what an OIDC one does, for the companies whose identity provider speaks SAML: the browser leaves for the provider, the person signs in there, and the provider sends back a signed assertion saying who they are. Meerkat never sees their password. Enterprise edition.
It is SP-initiated: the sign-in starts on the gateway's own page, with a button per provider. An assertion the provider sends on its own, without a request from this gateway, is refused - nothing would tie it to the browser presenting it.
Set it up
Prerequisites: the Enterprise edition, an administrator at the identity provider, and the public name people reach the data plane by, for instance https://apps.acme.io.
1. Start the authority
Open Infra > Authentication, click the + button (New authority), choose SAML and type a Name: the button on the sign-in page will say it, for instance Acme ADFS.
2. Declare Meerkat at the provider
The top of the drawer, Register these on the authority, hands over three values, each with its copy button:
| Console label | What the provider calls it | Value |
|---|---|---|
| Entity ID (audience) | Entity ID, identifier, relying party identifier, audience | https://apps.acme.io/login/<id>/metadata |
| Assertion consumer service (reply URL) | ACS URL, reply URL, endpoint | https://apps.acme.io/login/<id>/callback |
| This gateway's metadata | service provider metadata | the same /metadata address |
Most providers import the metadata address rather than have the two others typed. The gateway's metadata says what it expects: signed assertions, posted back (HTTP-POST). See the ADFS and Entra ID examples below.

3. Give Meerkat the provider's metadata
| Field | What to put in it |
|---|---|
| Identity provider metadata URL | where the provider publishes its metadata, for ADFS https://<adfs host>/FederationMetadata/2007-06/FederationMetadata.xml. Read again every hour, so a new signing certificate published ahead of a rollover is picked up on its own. A plain http address is accepted, with a warning under the field: the metadata can be altered on the way |
| Or its metadata, pasted | for a provider that publishes no URL: the XML itself |
| NameID format | how the provider names the person: The identity provider's choice, persistent, emailAddress or unspecified |
| Allowed e-mail domains | comma separated, as for OIDC. Empty accepts every address |
The attributes are four fields. Left empty, the usual names are tried: the claim URIs of ADFS and Entra ID, the short names of Okta and Shibboleth.
| Field | What it carries | Example |
|---|---|---|
| E-mail attribute | the address | email |
| Name attribute | the full name | displayName |
| Groups attribute | the groups, which a tenant's group rules map to roles | groups |
| Subject attribute | only when the NameID is transient: a stable attribute to link the account by | objectGUID |
Click Create: the authority is created switched off.
4. Test
Open the authority again and click Test the connection. It reads the provider's metadata and says what is missing: no signing certificate, or no sign-in endpoint for the HTTP-Redirect binding this gateway sends its requests by.
5. Switch it on and sign in once
Turn on the switch on the authority's row, then open https://apps.acme.io/login in a private window and click the authority's button. After the provider's page you come back to Meerkat, on the waiting page for a first arrival. Place the account in a tenant and grant it roles, as for OpenID Connect.
Example: ADFS
In the AD FS management console:
- Relying Party Trusts, Add Relying Party Trust, Claims aware.
- Import data about the relying party published online: paste This gateway's metadata. (Without access from ADFS to the gateway, enter the data manually: the Entity ID (audience) as the relying party identifier, and the Assertion consumer service (reply URL) as a SAML 2.0 WebSSO endpoint.)
- Finish the wizard with the access control policy you use.
- Edit Claim Issuance Policy, Add Rule, Send LDAP Attributes as Claims: E-Mail-Addresses to E-Mail Address, Display-Name to Name, Token-Groups - Unqualified Names to Group.
- Add a second rule, Transform an Incoming Claim: E-Mail Address to Name ID, format Persistent Identifier (or Email).
In Meerkat, the metadata URL is https://<adfs host>/FederationMetadata/2007-06/FederationMetadata.xml, and the four attribute fields can stay empty: the ADFS claim URIs are tried.
Example: Microsoft Entra ID
In the Microsoft Entra admin center:
- Enterprise applications, New application, Create your own application, Integrate any other application you don't find in the gallery (Non-gallery).
- Single sign-on, SAML. Under Basic SAML Configuration, Edit: Identifier (Entity ID) = the Entity ID (audience), Reply URL (Assertion Consumer Service URL) = the Assertion consumer service (reply URL). Save.
- Under Attributes & Claims, keep Unique User Identifier (Name ID) on
user.userprincipalnamewith a Persistent format, oruser.objectid. To receive groups, Add a group claim. - Under SAML Certificates, copy the App Federation Metadata Url: it goes into Identity provider metadata URL.
- Users and groups: assign the people who may sign in.
What the answer is checked against
Everything, and refused at the first miss:
- the signature, against the provider's certificate from its metadata - by a library that thousands of deployments exercise, never by hand: signature wrapping is where SAML implementations break;
- the issuer, the provider's entity ID;
- the audience, this gateway's entity ID;
- the destination and the recipient, this gateway's consumer service;
- the validity window (
NotBefore,NotOnOrAfter), and a certificate that has expired; - the request it answers (
InResponseTo): the request this very browser made, kept in its own cookie; - a replay: an assertion is accepted once. The ones already used are kept in the database until they would have expired, so a second post of the same one is refused on every instance of a cluster.
The answer is posted back from the provider's site, and a browser leaves the gateway's own cookie off such a post. The gateway answers it with a page that posts the same answer to itself, from its own address: the cookie travels, and nothing about the sign-in in progress is kept on the server.
Who the person becomes here
The account is linked under the NameID - which must therefore be stable. A transient NameID changes at every sign-in and would create a new account each time, so it is refused, with a way out: name a stable attribute (the address, an objectGUID) under Subject attribute, and the account is linked by that.
What follows is every authority's story: a first arrival creates a pending account, or is refused, as the authority's policy says; the second factor and passkeys follow its policies; the groups it sends are what a tenant's group rule maps to roles. See OpenID Connect.
Signed requests, encrypted assertions
Most providers sign their answers and need nothing from the gateway. Two cases need its own key pair:
- Sign the requests, for a provider that requires it;
- encrypted assertions, which the gateway reads with the same key.
Paste the gateway's certificate in This gateway's certificate (PEM), and its private key in This gateway's private key (PEM) - a secret field, kept in the vault. The certificate then appears in the gateway's metadata, for the provider to pick up.