Documentation

Auth as a SAML identity provider

Sign people in to SaaS tools and older systems that speak SAML rather than OpenID Connect.

All documentation

An application can act as the SAML 2.0 identity provider of one service provider: a tool your people use that accepts SAML sign-in. People sign in on the application's hosted pages with all of its rules (sign-in methods, the second factor, organizations, IP allow lists, sign-in hooks), and the service provider receives a signed assertion.

Set it up

  • In Auth admin, open the application and its SAML tab. Paste the service provider's metadata, or enter its entity id and assertion consumer service (HTTPS, HTTP-POST binding).
  • Choose the name id: the email address, the person's id (persistent), or unspecified (the email address).
  • Map attributes: a SAML attribute name, and a profile field (email, email_verified, given_name, family_name, name, user_id, roles, organization_id) or public_metadata.key / private_metadata.key.
  • Switch it on and save. Auth makes a signing key for the application, valid for ten years.
  • Give the service provider the metadata address shown on the tab, or the entity id, single sign-on address and certificate.
AddressPurpose
{issuer}/saml/idp/{clientId}/metadataAuth's metadata; also its entity id
{issuer}/saml/idp/{clientId}/ssoSingle sign-on, HTTP-Redirect and HTTP-POST bindings
{issuer}/saml/idp/{clientId}/startIdP-initiated sign-in, when allowed; ?RelayState= picks where the service provider lands

What the service provider receives

  • An assertion signed with RSA-SHA256 (exclusive canonicalization), for the service provider's entity id only, valid for five minutes.
  • Posted to the configured assertion consumer service only. A request naming another one is refused.
  • A refused sign-in (account, organization, network, plan, a hook, or the person declining) arrives as a signed SAML error response with status RequestDenied, or NoPassive for a passive request with no session.

Signed requests and IdP-initiated sign-in

Add the service provider's certificate to check requests it signs, and switch on "Accept signed requests only" to refuse the others. IdP-initiated sign-in is off by default: switch it on only for a service provider that expects unsolicited assertions.

Under a workspace's own issuer, the addresses are under {issuer}/w/{workspaceId}. Changing the issuer changes the entity id, so import the metadata at the service provider again. Replacing the certificate does the same.

Auth as a SAML identity provider is part of the Enterprise plan. Admin API: GET, PUT /api/v1/auth/applications/{id}/saml; POST .../saml/import reads metadata; POST .../saml/certificate replaces the certificate.