Zitadel as SAML identity provider for applications

Connecting a SAML application to Zitadel means exchanging metadata, matching attributes and confirming whether the app supports only SP-initiated login. This page sets out the build sequence, checks and failure points for your team or a partner.

On this page

How Zitadel works as a SAML identity provider for applications

Zitadel implements SAML 2.0 as an identity provider, so each application you connect is registered as a SAML service provider that trusts Zitadel's metadata and signing certificate. If you run Zitadel in infrastructure you control and need SAML sign-in for a SaaS tool or internal app, this per-application trust relationship is what you will build, test and maintain. Zitadel's protocol support is described in the Zitadel APIs introduction, but the work itself is specific to each application. For every SAML application you need to exchange metadata, decide how assertions are signed, map user attributes to the names the application expects, and test the login flow end to end. Two sources must agree for each application: the Zitadel SAML documentation for your version, and the application's own SAML settings page.

Start with the metadata exchange, because it fixes the values everything else depends on. The Zitadel side supplies its metadata and signing certificate, and the application side supplies its entity ID and assertion consumer service (ACS) URL. Compare each value character by character, since a trailing slash or a mismatched http and https scheme can be enough to make the login fail. Next, decide the signed assertion settings: which parts of the response are signed, which signature algorithm the application accepts, and how the signing certificate is renewed before it expires. Then set the NameID format and map attributes such as email, given name and surname to the claim names the application reads. Keep a short test matrix with, for example, an existing user with the correct role, a user without the role, and a user whose attributes are incomplete, and record which setting you changed to get each result.

Confirm three things before the build starts. First, check whether your application needs sign-in to begin at the identity provider, such as a tile in an app portal, or whether it only accepts logins that start from the application (SP-initiated). Verify this against the Zitadel release you run and the application's own documentation, not from memory, because a portal launch that works in one direction can fail in the other. Second, confirm which Zitadel organization and project will own the SAML application, since that determines who can change its settings and which users receive access. Third, agree who owns certificate rotation and metadata updates after go-live. DeployOpen is not a partner, reseller or certified provider of Zitadel or of any application vendor, so the configuration is built from the Zitadel documentation and the application's own settings, and any gap between the two is raised with the vendor before go-live.

What you need before Zitadel can act as a SAML identity provider

A SAML application in Zitadel depends on a release you run, a supported database, a trusted public domain, and a project that holds the application. Work through these six items before any metadata leaves your environment, and confirm each version and network path in your own infrastructure first.

Self-hosted Zitadel on a confirmed release

Zitadel can only act as the identity provider on a deployment you operate yourself, so start by choosing the release you will run. The release listed for this guide is v4.19.5, dated 15 October 2026. Check the current release list before you install, because a newer patch may have shipped by the time you deploy. Pin the same version in every environment so the SAML behavior you test in staging matches production.

Zitadel releases

PostgreSQL on a supported version

Self-hosted Zitadel stores its data in PostgreSQL, and the supported major versions run from 14 through 18. Pick a version in that range and confirm it against the database documentation for the Zitadel release you chose, since support can change between releases. Decide who runs the database, how it is backed up, and how the Zitadel nodes reach it before deployment. Every sign-in depends on this connection, so an outage here stops every SAML application at once.

Zitadel database docs

Public HTTPS domain and trusted certificate

Service providers fetch Zitadel's SAML metadata and send users to its sign-in endpoints over HTTPS, so Zitadel needs a public domain with a certificate every service provider trusts. Check that each application's servers and users can resolve the name and open the connection, including through any proxy, firewall or private DNS zone you run. Verify the certificate chain against the trust store the application actually uses. A provider that rejects the certificate fails at the first login, and a changed domain invalidates the metadata you already exchanged.

Organization and project for SAML

In Zitadel, a SAML application lives in a project, and the project sits inside an organization that holds the users who will sign in. Create the organization and project first, and decide whether the users are created here or arrive through an identity provider you federate, since that choice determines where roles and grants are managed. Name the project after the application so grants and audit records stay readable later. Keep the organization inside the instance that matches your tenant model, because instances are separate tenants with full data isolation.

Zitadel organizations

Owner access and test users

The person who maintains the SAML application needs permission to edit its settings, including service provider metadata and attribute mapping, without holding broader administrator rights across the instance. Name that settings owner and confirm the role they need before the build starts. Then assemble a small test user set with different roles and group memberships that mirror your production users. Use these accounts for every test in this guide so that problems surface before any employee signs in.

Change window for SSO settings

Editing a SAML application's SSO configuration can break sign-in for users who are already active, so schedule a change window in which you can edit and roll back. Agree the window with the application owner and the team that supports the service provider. Write down each setting you will change, such as the metadata, the entity identifier and the attribute names. Test the change with the test user set, and keep the previous configuration so you can restore it quickly if sign-in fails.

The browser carries the signed SAML response back to the application

The diagram starts with a one-time setup phase. The application's metadata, including its assertion consumer URL, goes to Zitadel, and Zitadel's metadata, including its signing certificate, comes back. At sign-in, the browser moves from the application to Zitadel with a SAML request. After the user signs in, Zitadel returns a signed SAML response through the browser, which posts it to the assertion consumer URL. Check the two marked points: Zitadel should answer only the assertion consumer URL registered for that application, and the application should verify the response signature against the Zitadel certificate it received in metadata. The boxes separate the organization's network from the application vendor's network.

Setup exchanges metadata once, then each login returns a signed response through the browser.

Why the SP-initiated only limit decides the login design

The SP-initiated only limit decides how much of the login design is fixed before any build starts, because it determines where a user is allowed to begin signing in. Many applications start sign-in from their own login page: the service provider sends the browser to Zitadel with a SAML AuthnRequest, and Zitadel returns a signed assertion to the application's assertion consumer service. Some applications also accept sign-in started from the identity provider's side, where a user chooses the application from a launch point and receives an unsolicited assertion. The Zitadel documentation for SAML must be checked for which of these flows it supports for each part of the setup, because support on one side does not confirm support on the other. For each application, confirm whether it needs IdP-initiated sign-in or only SP-initiated sign-in, and record the answer with the application owner.

The answer changes three things. For an SP-initiated only application, the test plan centers on the redirect from the application's login page, validation of the authentication request, the return to the requested page after sign-in, and single logout. If IdP-initiated sign-in is required, the plan adds a test that starts at Zitadel and checks the assertion's Audience, Recipient and Destination values, along with how the application handles a response that has no prior request. The user's portal experience also depends on the answer. A tile in any launch page or portal your team builds will land the user on the application's login page if the application is SP-initiated only, so the tile must point to the application's own entry point. Where IdP-initiated sign-in is needed, the launch page must trigger a Zitadel-side start, and the landing page after sign-in must be specified for each application.

Plan the fallback before the first test. If an application needs IdP-initiated sign-in but that flow is unavailable or unreliable in your configuration, decide whether users will start from the application's login page, whether a bookmark is acceptable to the application owner, or whether that application needs a different sign-in arrangement. If a flow works only with one application version or one Zitadel release, record that constraint, because upgrades can change behavior. Do not assume support until both sides have been tested: the Zitadel SAML application settings and the application's SAML configuration must each be verified with a real user, a real assertion, RelayState handling and a logout test in a staging environment before the application is listed as supported.

Setup sequence for a SAML application in Zitadel

This sequence connects a SAML service provider, such as a SaaS product or internal app, to Zitadel as its identity provider. It ends with a working single sign-on login for a non-administrator user, with the entity ID, assertion consumer URL, certificate and attribute mapping agreed on both sides. Each step closes with a check you can record before moving on.

  1. Create or select the project and organization

    Decide which Zitadel organization will own the identity for this application, then create or select the project that groups the application and its roles. The organization and project are where users, grants and the SAML application live, so choose them before the application exists. Your Zitadel administrator performs this step in the console. Confirm the exact menu names and navigation in the current Zitadel documentation. Done when the project appears under the intended organization and a test user exists there, which you will need in the final step.

  2. Create the SAML application and record metadata

    Add a SAML application to the project in the Zitadel console and enter the settings the service provider documents for your environment. Zitadel makes its identity provider metadata available for the application, so save or download it for the next steps. Record the entity ID exactly as the provider states it, including trailing slashes and letter case, because a single character mismatch causes login to fail. Check that the application appears in the project and that the entity ID in its settings matches the provider's documentation.

  3. Obtain the provider's metadata and ACS URL

    Get the service provider's metadata file or its assertion consumer service URL, entity ID and signing certificate from the application you are connecting. Many SaaS and internal apps publish these on an admin page or in a metadata XML document, and the location depends on the product. Confirm which binding the provider expects and whether it requires signed assertions or signed requests. Check that you can name the entity ID, the assertion consumer URL and the certificate expiry date from the provider's own settings, and that these values match what you will enter in Zitadel.

  4. Configure the application with Zitadel metadata

    In the service provider's admin settings, upload or paste Zitadel's metadata, or enter the identity provider entity ID, single sign-on URL and signing certificate that Zitadel publishes for the application. Use the certificate from the current Zitadel metadata, and replace any copy saved earlier, because certificates are renewed. Confirm the exact field names in the provider's documentation. Check that the entity ID on both sides matches character for character and that the provider's metadata validation or SSO test accepts the configuration without errors.

  5. Map the name identifier and attributes

    Set the name identifier format and the attributes the application expects, such as email, first name, last name and groups or roles, to the matching Zitadel user fields. Attribute names are case-sensitive in many providers, so copy them from the provider's documentation. Decide which attribute the application uses as the account key, because changing it later can create duplicate accounts. Check by signing in as a test user and confirming that each attribute appears in the application's user profile with the expected value.

  6. Run a test login with a non-administrator user

    Sign in with a test user who has no Zitadel administrator role, starting from the service provider as its flow requires. Confirm whether this application supports only service-provider-initiated login, because that limits what you can test from the identity side. Check that the user lands in the application, that the expected account is created or matched, and that a user without an assigned grant is refused. Record the result and the assertion attributes you saw before enforcing SSO for other users.

Attributes and identities to map between Zitadel and the application

This table compares each identifier and attribute the application expects in a SAML assertion with the Zitadel field that supplies it, the format to send and the owner who signs off. Read it before you build the SAML application, because the name identifier decides how the application matches an existing account. Roles come from project grants in Zitadel's organization model, and mismatches often start with mutable values such as email.

Attribute or identifierZitadel sourceRequired formatOwner who confirms
Name identifier the application matches onZitadel user ID, the stable choice for matching accountsFormat the application accepts, sent unchanged on every loginApplication owner, confirmed in a test login
Email addressUser email, sent only when verified in ZitadelEmail exactly as the application stores it, normalized the same wayApplication administrator and identity lead
Username or login nameZitadel login name within the organizationUnique text that follows the application's username rulesApplication administrator
Display nameDisplay name, given name and family name from the user profileOne text value, or given and family names if the application splits themApplication administrator
Role or group attributeProject role keys from grants on the project that holds the SAML applicationMulti-valued, with role keys matching the application's role names exactlyApplication owner, with the Zitadel project administrator approving grants
Organization or tenant identifierOrganization the user belongs to within the Zitadel instanceOrganization ID or domain, only if the application routes tenantsPlatform owner for multi-tenant deployments
Access to the applicationProject grant for the user on the project that holds the SAML applicationUsers without a grant should not reach the applicationPlatform owner and application owner
Mutable value used for matchingEmail or login name, which can change after account creationMatching on either needs a written owner decision before go-liveApplication owner and identity lead, in writing

Security settings to review for each SAML application

Every SAML application trusts Zitadel to sign its assertions, so each application needs its own review of the settings below. DeployOpen prepares and tests these controls in your environment but does not issue audit reports or certifications, which independent auditors and certification bodies provide. The Zitadel license change to AGPL applies to the core product, Console and hosted login, while the documented APIs remain Apache 2.0.

Signing and certificate rotation

The signing certificate lets an application confirm that an assertion came from Zitadel, so it decides who can sign in. Name who owns rotation on the Zitadel side and on the application side. Confirm how each application learns about a new certificate, whether through a metadata refresh, a manual upload or a pinned copy that fails at expiry. If the application supports it, plan an overlap period where the old and new certificates are both accepted, and rehearse the change in a test environment before production.

Identity provider docs

Assertion encryption support

Signing shows who issued an assertion, while encryption limits who can read the attributes inside it. Whether an application accepts encrypted assertions is an application decision, so confirm support for each application with its vendor before you assume it. Where it is supported, check which certificate the application uses for encryption, how that key is rotated and which algorithms it accepts. Where it is not supported, list the attributes sent in the response and limit them to what the application needs to grant access.

Entity ID and callback allow-list

The entity ID identifies each service provider, and the assertion consumer service URL tells Zitadel where to send the response. Together they form the allow-list that keeps a response from reaching a URL you never registered. Enter exact values copied from each application's metadata, including scheme, host, path and trailing slash. Keep callback paths separate for each application, and review the list whenever an application changes domain or adds a tenant.

Clock skew and assertion lifetime

SAML assertions carry validity conditions, and a service provider rejects any assertion outside its time window. Set the assertion lifetime short enough that a captured response has little value, and set clock skew tolerance on each application only as wide as your environment requires. Keep time synchronization running on Zitadel nodes and on every application host. Test sign-in from a host with a drifted clock, because the failure often appears as a generic error inside the application. Confirm which values each application enforces.

Least-privilege project grants

A SAML application sits inside a Zitadel project, and the project grants decide which users and roles can reach it. Grant access to named roles or groups so that a user who needs one application cannot sign in to every other application in the project. Check which roles the application maps to its own permissions, and remove grants when a team changes. Limit grant administration to a small set of administrators, and review grants on a schedule and after each organizational change.

Organizations concept

Sign-in and assertion logging

Sign-in events should be traceable in two places: Zitadel records the authentication and the assertion it issued, and the application records what it did with that assertion. Confirm which SAML events Zitadel logs in your deployment and how long they are kept, then forward them to your log platform. In each application, check that the log includes the user identifier, the issuer and the authentication time. Align these identifiers so an investigator can match a Zitadel event to an application event, and test that a failed assertion appears on both sides.

Common SAML failures between Zitadel and applications

This table lists the SAML failures teams most often hit when a service provider connects to Zitadel, with the likely cause and the first check to run for each. Read each row from the symptom in the application's log or error page, then run the named check before changing anything on either side. The main takeaway is that most failures come from a mismatch between what the application expects and what the Zitadel SAML application is configured to send.

SymptomLikely causeFirst check
Signature validation error on the assertionThe application holds an old copy of the Zitadel signing certificate, often left over from a certificate change.Compare the certificate stored in the application with the one Zitadel currently publishes in the SAML metadata, then re-import the metadata.
Entity ID rejected or audience mismatchThe entity ID configured in the application differs from the service provider entity ID registered in the Zitadel SAML application.Compare the service provider entity ID in the Zitadel SAML application with the value the application expects, character for character.
Error after login, or the response never reaches the applicationThe assertion consumer URL registered in Zitadel differs from the application's ACS URL in scheme, host or trailing slash.Check the ACS URL in the Zitadel SAML application against the application's configured ACS URL, including https, the host and the trailing slash.
Application reports that no account matches the userThe NameID format or value Zitadel sends does not match the identifier stored on the existing application account.Decode one successful test assertion and compare its NameID format and value with the account identifier stored in the application.
Assertion rejected as expired or not yet validClock skew between the Zitadel host and the application server makes the assertion validity window appear closed.Confirm both servers sync time from a trusted source, then compare the validity timestamps in a test assertion with current UTC time.
User signs in to Zitadel but the application denies accessThe user has no grant on the project that contains the SAML application, so the application receives no authorized role.In the Zitadel console, confirm the user holds a grant on the project and the role the application requires.
Sign-in fails when started from a portal tile or an IdP linkThe SAML application supports only SP-initiated sign-in, so an unsolicited IdP-initiated response is refused.Test from the application's own login page first, and confirm the application accepts IdP-initiated responses before you publish a portal link.

How much effort does a SAML identity provider setup in Zitadel take?

What makes a Zitadel SAML setup take more or less effort?

The effort depends mainly on five factors: the number of applications, whether users start sign-in from the identity provider side, how complex the attributes and roles are, how certificate rotation will work, and whether the application's own admin team will test. Each application is a separate service provider with its own metadata, signing certificate, audience value and attribute expectations, so each added application repeats the metadata exchange, attribute mapping and test cycle. IdP-initiated sign-in needs its own check, because the SAML limitation to verify for each application is that Zitadel's flow is SP-initiated only, so confirm that behavior before promising it to users. Heavy attribute and role mapping adds test cases for each group that reaches the application. Ask for each factor to appear as a line item in the written scope.

What does our team need to provide for a SAML setup?

Plan to provide four things: administrator access to each application that will trust Zitadel, a set of test users with known roles in Zitadel, a change window in which the application's SAML settings can be switched, and a named owner for the signing certificate lifecycle. Application admin access matters most, because the metadata exchange and attribute mapping are often configured on the service provider side. Test users should cover each role and group that will reach the application, including at least one user who should be denied. The change window should leave room for a rollback. Without a named certificate owner, renewal dates tend to be missed and nobody approves the replacement. Ask your partner to write these dependencies into the scope so the work does not stall while access is requested.

Can our own team set up the first SAML application alone?

Often yes, if the team already runs Zitadel and has an administrator for the application, but the first application usually takes longer than later ones because the team is also learning the Zitadel project, application and role model. Check for three skills: someone who can configure the SAML application and its metadata in Zitadel, someone who can change the application's SAML settings and attribute mapping, and someone who can run a test plan with named users and roles. A partner is useful when the team lacks one of these skills, or when the first application will set the pattern for the rest. A practical test is a dry run in a non-production environment that the team completes without outside help. The decision then depends on the number of applications and the rotation schedule, not on the first setup alone.

How does the Zitadel license affect a self-hosted SAML decision?

The license governs what you may run, modify and distribute, and it does not decide whether a SAML application can be connected. According to Zitadel's Apache to AGPL post, the core, Console and hosted login moved to the GNU Affero General Public License 3.0 with Zitadel v3.0 on 31 March 2025, while APIs, SDKs, proto definitions, documentation, Helm charts and Terraform configurations remain under Apache 2.0. The free self-hosted option carries the AGPL terms for the core components, and the Enterprise plan adds custom support agreements and technical account management. If you plan to change the console or login pages for your users, ask your legal or compliance team to review the AGPL obligations first. Confirm current terms with Zitadel before you commit.

What should a fixed-scope quote for SAML setup include?

A fixed-scope quote should name every item that determines the work, so you can compare it with your own plan:

  • The list of applications, with the sign-in mode for each (SP-initiated, and IdP-initiated only where it has been confirmed)
  • Metadata exchange steps, signing certificate handling and the rotation runbook
  • Attribute and role mapping rules, with the source of each claim
  • Test plan, test users and acceptance criteria for each application
  • Change windows, rollback steps and who approves each cutover
  • Client responsibilities, such as admin access, test users and named owners
  • Handover documentation and any retest after fixes
  • Items out of scope, such as applications not on the list or support after handover

Ask for the assumptions tied to the number of applications and test cycles. DeployOpen agrees scope, deliverables and timelines in writing before work starts and does not publish a price list, so the written scope is the basis for the quote.

How long does a SAML application setup in Zitadel take?

No fixed duration applies, because the time depends on the factors above and on how quickly your application admins, test users and change windows are available. The sequence is: confirm the application's SAML requirements, exchange metadata, configure the Zitadel application and mappings, test with named users, schedule the cutover, and document certificate rotation. Most steps repeat for each application, so a second application usually moves faster than the first, but only if the same team and process are reused. Ask for a timeline in the written scope that lists the dependencies on your side, such as access approvals and change windows. Treat any timeline that omits those dependencies as a starting assumption only, and review it again once the application inventory is complete.

What goes wrong during a SAML cutover to Zitadel?

Failures usually come from small mismatches between the two sides: an entity ID or assertion consumer URL entered differently, a certificate that does not match the one the application trusts, a NameID format or email attribute that differs from the account the application already holds, or a role claim missing for some users. Test users who already have local accounts in the application can be matched to the wrong identity when usernames do not align, so check account linking before cutover. Keep a fallback login path for application administrators until the cutover is verified, so one broken setting does not lock everyone out. Record the exact metadata version and certificate fingerprint in the change ticket. Verify SP-initiated sign-in first, then confirm any IdP-initiated behavior application by application.

How DeployOpen scopes, delivers and supports SAML integrations

DeployOpen scopes, builds and hands over SAML integrations for Zitadel in infrastructure you control. Zitadel implements SAML 2.0 alongside OpenID Connect, so each application's metadata, certificate and attribute needs are agreed before the build starts. Most engagements are fixed-scope, with deliverables and timelines agreed in writing, and ongoing support is available as a retainer.

How we scope

  • The written scope lists each SAML application, its service provider metadata and the sign-in flow it needs.
  • Scope records whether each application supports only SP-initiated sign-in, a limit to verify before build starts.
  • Attribute mapping, signing certificate rotation and any user provisioning are listed as separate deliverables in the written scope.

How we build

  • Exchange SAML metadata between Zitadel and each application, then verify entity IDs, ACS URLs and certificates match.
  • Map user attributes such as name, email and roles into assertions, and test each claim with a non-production user.
  • Confirm assertion signing and signature validation settings on both sides, then run sign-in tests before enforcing SSO.

How we hand over

  • Deliver a runbook covering each application's SAML settings, metadata locations, certificate expiry dates and attribute maps.
  • Document test cases and results so your security and identity teams can review the sign-in path.
  • Walk through certificate renewal, metadata updates and rollback steps with the operators who will run it.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Retainer support can cover Zitadel version upgrades and checks that SAML settings still match each application, as agreed in writing.
  • Certificate and metadata changes on either side should go through the same change process used for the original build.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.