SAML Configuration
This guide explains how to connect your identity provider to Consentio over SAML 2.0, so that your users sign in with their corporate credentials instead of a separate Consentio password.
Looking for OIDC? See OIDC Configuration.
Overview
Consentio is the service provider (SP) and supports SP-initiated SSO. It issues an AuthnRequest over the HTTP-Redirect binding, receives the assertion over HTTP-POST, reads the user's email address from an assertion attribute, and matches it to a provisioned Consentio account. Consentio never creates an account from a login: the user has to exist first, through SCIM provisioning or manual provisioning by your integration contact.
Prerequisites
- Administrative access to your identity provider.
- An agreed list of email domains your organisation owns.
- Your Consentio organisation ID, which every SAML endpoint is scoped to. Your integration contact provides it.
Consentio SAML endpoints
Consentio publishes one set of SAML endpoints per organisation. Replace {orgId} with your Consentio organisation ID, and {apiBaseUrl} with the API base URL of the environment you are configuring, listed in Introduction.
Use the base URL of the environment under test. A staging or sandbox application pointed at the production host sends its assertions to production.
| Parameter | URL |
|---|---|
| Metadata URL | {apiBaseUrl}/v2/saml/metadata/{orgId} |
| ACS URL | {apiBaseUrl}/v2/saml/acs/{orgId} |
| Entity ID | {apiBaseUrl}/v2/saml/acs/{orgId} |
The entity ID and the ACS URL are deliberately the same value; configure both.
Service provider certificate
The metadata document carries Consentio's signing certificate. It is derived from the platform signing key — the same key published as the sig entry of the OIDC key set — and is identical across every server in an environment, so your IdP can pin it.
If your IdP stores a copy of the certificate rather than refetching metadata, refetch after Consentio rotates its keys. Your integration contact will give you notice.
Step 1: Gather your IdP information
Collect the following from your identity provider:
| Parameter | Description |
|---|---|
entity_id |
Your IdP's entity ID / issuer |
sso_url |
SSO URL, HTTP-Redirect binding |
certificate |
X.509 signing certificate, base64-encoded |
Most IdPs publish all three in their SAML metadata document or on the application configuration screen.
Step 2: Configure your IdP
Create a new SAML application in your IdP with the following settings.
| Setting | Value |
|---|---|
| ACS URL (assertion consumer service) | {apiBaseUrl}/v2/saml/acs/{orgId} |
| Entity ID / audience | {apiBaseUrl}/v2/saml/acs/{orgId} |
| ACS binding | HTTP-POST |
| NameID format | Email address (urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress) |
| Assertion signing | Required |
Note: all of this is also published at
{apiBaseUrl}/v2/saml/metadata/{orgId}, so an IdP that imports SP metadata needs only that URL and the attribute mapping below.
IdP-specific guides
Microsoft Entra ID (Azure AD)
- Go to Enterprise Applications → New Application → Create your own application.
- Select "Integrate any other application you don't find in the gallery (Non-gallery)".
- Navigate to Single sign-on → SAML.
- Set the Basic SAML Configuration:
- Identifier (Entity ID):
{apiBaseUrl}/v2/saml/acs/{orgId} - Reply URL (ACS URL):
{apiBaseUrl}/v2/saml/acs/{orgId}
- Identifier (Entity ID):
- Download the Certificate (Base64) from the SAML Signing Certificate section.
- Copy the Login URL and Microsoft Entra Identifier from the set-up section.
Okta
- Go to Applications → Create App Integration.
- Select SAML 2.0.
- Configure the SAML settings:
- Single sign-on URL:
{apiBaseUrl}/v2/saml/acs/{orgId} - Audience URI (SP Entity ID):
{apiBaseUrl}/v2/saml/acs/{orgId} - Name ID format: EmailAddress
- Single sign-on URL:
- Download the X.509 certificate from the Sign On tab.
- Copy the Identity Provider Single Sign-On URL and Identity Provider Issuer.
Google Workspace
- Go to Admin Console → Apps → Web and mobile apps → Add custom SAML app.
- Download the IdP metadata, or note the SSO URL and certificate.
- Configure the service provider details:
- ACS URL:
{apiBaseUrl}/v2/saml/acs/{orgId} - Entity ID:
{apiBaseUrl}/v2/saml/acs/{orgId} - Name ID: Basic Information → Primary email
- ACS URL:
Step 3: Map the email attribute
Consentio identifies the user from an attribute in the assertion, not from the NameID. Configure your IdP to send the user's email address under one of these names:
| SAML attribute name | Required | Description |
|---|---|---|
mail, email, or urn:oid:0.9.2342.19200300.100.1.3 (rfc822Mailbox) |
Yes | User's email address |
The first of these present in the assertion is used. If none is present, or the value does not match the address the user entered on the login page, the login is rejected rather than resolved to another account.
Setting the NameID to the user's email as well is good practice, but Consentio does not match on it.
Step 4: Provide your IdP details to Consentio
Send the following to your Consentio integration contact:
| Parameter | Description | Example |
|---|---|---|
entity_id |
Your IdP's entity ID | https://sts.example.com/{tenant-id}/ |
sso_url |
IdP SSO URL, HTTP-Redirect binding | https://login.example.com/saml2/sso |
certificate |
Base64-encoded X.509 certificate | MIICnTCCAYUCBgF... |
Step 5: Provision your users
Authentication only establishes who the user is; it does not grant access. Users have to exist in Consentio, and their workspace access comes from their roles and group memberships.
Set up SCIM provisioning, or ask your integration contact to provision users manually.
Step 6: Test the integration
- Open the Consentio login page for the environment you are testing.
- Choose to sign in with SSO.
- Enter a corporate email address on one of your allowed domains.
- You should be redirected to your IdP's login page.
- After authenticating, you are returned to Consentio and signed in.
What Consentio validates
| Check | Behaviour |
|---|---|
| Signature | The assertion is verified against the certificate you supplied |
InResponseTo |
The assertion must answer an AuthnRequest Consentio issued, which is then consumed |
| Audience | Must be the ACS URL for your organisation |
| Email attribute | Must be present, and must match the address entered at login |
| Account status | A deactivated user is refused at the start of the flow |
Single logout
Consentio does not implement SAML single logout. Signing out of Consentio ends the Consentio session and disables that device; the IdP session is unaffected. If single logout matters to you, raise it with your integration contact.
Troubleshooting
| Issue | Likely cause | Resolution |
|---|---|---|
| Signature validation failed | Wrong or stale IdP certificate | Supply the signing certificate, not the encryption one, and check it is current |
| "Email attribute not found" | Attribute mapping missing | Send the email under mail, email or urn:oid:0.9.2342.19200300.100.1.3 |
| Email mismatch error | Assertion address differs from the login | Make sure the mapped attribute is the user's primary address |
| User not found | User not provisioned | Provision the user over SCIM before their first login |
| Access denied after sign-in | No role reaches the user | See Role Management |
| Redirect loop | ACS URL mismatch | The ACS URL must match the metadata exactly, including the organisation ID |
Debugging tips
- Use your IdP's SAML tracer to inspect the assertion as sent.
- Compare your configuration against
{apiBaseUrl}/v2/saml/metadata/{orgId}. - Confirm the certificate has not expired and is the one currently in use.
- Confirm the ACS URL is HTTPS and carries the correct organisation ID.
Next steps
- OIDC Configuration — configure SSO over OpenID Connect instead.
- Authentication Flows — the end-to-end sequence for both protocols.
- SCIM Provisioning — automate the user lifecycle.
- Role Management — how access is granted once a user can sign in.