Protocol Guide

SAML Configuration

Configure Idenplane as a SAML 2.0 Identity Provider, connect your Service Provider, and test single sign-on end-to-end.

What is SAML?

Security Assertion Markup Language (SAML) 2.0 is an XML-based standard for exchanging authentication and authorization data between an Identity Provider (IdP) and a Service Provider (SP).

Idenplane acts as a SAML 2.0 Identity Provider. Your applications register as Service Providers and delegate user authentication to Idenplane. To let users sign in through an existing provider such as Entra ID or Okta, follow the external SAML identity provider guide.

Identity Provider Metadata

Most SP libraries auto-configure when you provide the IdP metadata URL:

Terminal
curl https://auth.example.com/realms/my-realm/protocol/saml/descriptor

The XML document contains the IdP entity ID, the SSO service URLs (HTTP-POST and HTTP-Redirect bindings), the supported NameID formats (email, persistent, transient), and the signing certificate.

Registering a Service Provider

Register your Service Provider in the Admin Console:

  1. 1

    Open the Admin Console

    Navigate to /console and select your realm.

  2. 2

    Add a Service Provider

    Go to SAML Providers and create a new service provider (or use POST /admin/realms/{realm}/saml-service-providers).

  3. 3

    Set the Entity ID

    The Entity ID uniquely identifies your SP, e.g. https://app.example.com/saml/metadata.

  4. 4

    Configure ACS URL

    Set the Assertion Consumer Service URL to your SP's callback endpoint, e.g. https://app.example.com/saml/acs.

  5. 5

    Choose NameID format and signing

    Pick the NameID format (email by default, persistent, transient or unspecified) and whether to sign assertions and responses (both on by default). Assertions carry the attributes email, firstName, lastName, username and uid.

Key SAML Endpoints

Endpoint URL
IdP Metadata /realms/{realm}/protocol/saml/descriptor
SSO (POST) /realms/{realm}/protocol/saml
SSO (Redirect) /realms/{realm}/protocol/saml
Single Logout Not supported yet

Testing the SSO Flow

Use a SAML testing tool like SAML-tracer (Firefox/Chrome extension) to inspect assertions:

  1. Install SAML-tracer in your browser and enable it.
  2. Trigger a login from your SP application.
  3. Inspect the SAMLRequest sent to Idenplane and the SAMLResponse with the assertion.
  4. Verify that the expected attributes (email, firstName, lastName, username, uid) appear in the assertion.

Keep your SP's clock in sync with Idenplane's. Assertions are valid from 1 minute before to 5 minutes after they are issued (NotBefore / NotOnOrAfter).