Keycloak vs Zitadel for GitLab SSO: when each one fits
Keycloak fits teams that want the OIDC path GitLab documents with a Keycloak example, and that may also need SAML 2.0 or LDAP and Active Directory federation for other systems. Zitadel fits teams that already run it or serve several customer organizations, and its documented SAML guide for GitLab covers GitLab.com groups on the Premium tier. The general Keycloak vs Zitadel comparison has its own page, so this section only covers GitLab sign-in. The choice turns on two questions: whether your GitLab instance is Self-Managed or GitLab.com, and which tier it runs. Settle both before you choose a protocol, because the tier decides which SSO and group features you can use.
On a Self-Managed GitLab, both products have a documented OIDC route. The GitLab OpenID Connect documentation has a Configure Keycloak section with an example omniauth_providers block that requests the openid, profile and email scopes, and GitLab lists OIDC sign-in in the Free, Premium and Ultimate tiers. For Keycloak, GitLab only talks to a server that runs over HTTPS, and Keycloak must sign tokens with public key algorithms. Zitadel documents a self-hosted GitLab guide using the OmniAuth openid_connect provider, with the redirect URI https://<gitlab>/users/auth/openid_connect/callback. OIDC group membership requirements are a Premium and Ultimate feature, so on Free, sign-in can work while group membership does not apply. Confirm your tier and the claims your client sends before you pick a design.
On GitLab.com, the decision narrows. Zitadel's documented SAML guide for GitLab SaaS requires the Premium tier and is configured under the group's Settings, then SAML SSO, and GitLab lists SAML SSO for GitLab.com groups in Premium and Ultimate. Keycloak supports SAML 2.0, but the GitLab sources for this topic give no Keycloak walkthrough for GitLab.com, so test the group-level settings in a sandbox group first. Provisioning is a separate check. GitLab describes SCIM provisioning for GitLab.com groups, Keycloak's SCIM API provisions users into Keycloak, and Zitadel's SCIM v2 interface provisions users into Zitadel. Neither set of guides describes pushing users out to downstream apps such as GitLab, so confirm that path with the vendor before you plan joiner and leaver handling.
How Keycloak and Zitadel differ for GitLab SSO, aspect by aspect
This table compares how Keycloak and Zitadel fit GitLab sign-in across protocol path, GitLab guidance, tiers, HTTPS and signing, group membership, provisioning and runtime needs. Read each row for the documented fact first, then the confirmation step where a guide is silent. The main takeaway: both have a documented OpenID Connect route to self-managed GitLab, but group handling and push provisioning are where the guides leave the most to verify.
| Aspect | Keycloak | Zitadel |
|---|---|---|
| Documented protocol path | OpenID Connect through GitLab's OmniAuth openid_connect provider | OpenID Connect for self-managed GitLab; the SAML guide covers GitLab.com only |
| GitLab-specific guide | GitLab's OpenID Connect docs include a Configure Keycloak section with an omniauth_providers example | Self-hosted GitLab guide for the OmniAuth openid_connect provider; separate SAML guide for GitLab.com |
| GitLab tier required | OIDC sign-in on Free, Premium or Ultimate; OIDC group membership needs Premium or Ultimate | OIDC sign-in follows the same GitLab tiers; the GitLab.com SAML guide needs Premium |
| HTTPS and token signing | GitLab requires HTTPS to Keycloak, and Keycloak must sign tokens with public key algorithms | Not documented in the self-hosted guide. Confirm HTTPS and token signing settings with Zitadel before go-live. |
| Group membership | Not documented in GitLab's Keycloak section. Confirm the group claim mapping for your GitLab version. | Not documented in Zitadel's GitLab guides. Confirm the group claim mapping for your GitLab version. |
| SCIM into the provider | Keycloak's SCIM API provisions users into Keycloak, listed as supported in the 26.8 release notes | SCIM v2 interface provisions users into Zitadel. Confirm how groups are handled. |
| Push to GitLab | Not documented for Keycloak. GitLab's SCIM docs cover GitLab.com groups, so confirm self-managed options. | Guides do not describe pushing users to apps. Confirm GitLab provisioning options with Zitadel. |
| Runtime prerequisites | Relational database in production; PostgreSQL 14 to 18 among supported options | PostgreSQL 14 to 18; Docker Compose, Linux binaries or Kubernetes with the Helm chart for high availability |
What GitLab SSO requires from an identity provider
GitLab accepts single sign-on through two routes: SAML, and OpenID Connect through the OmniAuth openid_connect provider (OmniAuth is the Ruby login framework GitLab uses for external providers). Choose the route first, because your GitLab tier determines which features come with each one. For GitLab Self-Managed, the OpenID Connect documentation lists sign-in in the Free, Premium and Ultimate tiers and reserves OIDC group membership requirements for Premium and Ultimate. SAML SSO for Self-Managed is also listed in all three tiers. On GitLab.com, SAML SSO for groups is listed in the Premium and Ultimate tiers. SCIM provisioning for GitLab.com groups is documented, but the minimum tier for it is not stated in the material we are working from, so confirm it with GitLab in writing before you plan around it.
Any identity provider behind GitLab's OIDC route must serve HTTPS, and GitLab's OpenID Connect guidance says it can only talk to a Keycloak server that uses HTTPS. Settle the Keycloak hostname, certificate chain and redirect path before you write the GitLab configuration. The same guidance says Keycloak must be set to sign tokens with public key algorithms. Confirm the signature setting on the Keycloak client that GitLab uses, and confirm the exact field name in the Keycloak version you run, since the setting is easy to find at the wrong level. Keep the omniauth_providers example from GitLab's Configure Keycloak section open while you work, and check that the requested scopes (openid, profile and email) match what the client releases. The redirect URI must end in /users/auth/openid_connect/callback on your GitLab external URL, character for character, or sign-in fails at the callback step.
Provisioning is a separate decision from sign-in, and the two identity providers document it differently. Keycloak's Server Administration Guide describes a SCIM API that lets external systems provision users into Keycloak, and the Keycloak 26.8 release notes list that API as supported. Decide how group membership in GitLab will be populated before you rely on either route. Zitadel documents a SCIM v2 service provider interface for provisioning users into Zitadel, but its guides do not describe pushing users out to applications, so treat a Zitadel-to-GitLab provisioning flow as unconfirmed until you have tested it. Before you commit, sign in with a non-administrator test account, confirm which claim GitLab uses to match the account, then remove the test user in the identity provider and record what happens to the GitLab account.
How to set up Keycloak or Zitadel as the GitLab SSO provider
This route uses Keycloak 26.8.1, the current release in the supplied facts. GitLab's OpenID Connect documentation sets server conditions before any client exists, so start with transport and database, then build the OIDC client, then configure GitLab. Check each step against GitLab's OpenID Connect page and the Keycloak Server Administration Guide.
- Serve Keycloak over HTTPS. GitLab only talks to a Keycloak server that uses HTTPS, so the certificate chain must be trusted by the GitLab host. Provider side: platform team.
- Replace the dev file database. The default dev-file database is not suitable for production. Use a supported production database, such as PostgreSQL 14 to 18, and have a database administrator confirm backup and access. Provider side: platform team and DBA.
- Create an OIDC client for GitLab. In your realm, register a client with the redirect URI
https://<gitlab>/users/auth/openid_connect/callback. Set token signing to a public key algorithm, which GitLab requires for Keycloak. Provider side: realm administrator. - Add the omniauth_providers block on GitLab. In
gitlab.rb, setomniauth_providerswith the openid_connect provider, the labelKeycloak, and the scopesopenid,profileandemail, then rungitlab-ctl reconfigure. GitLab side: administrator access to the Linux package host. - Check the tier before designing group access. OIDC sign-in is listed for Self-Managed in every tier from Free upward, but OIDC group membership requirements need Premium or higher.
Before go-live, confirm that the sign-in button shows the label Keycloak, that a test user can sign in, and that the token signing algorithm matches what GitLab's documentation describes.
This route uses Zitadel v4.19.5, the current release in the supplied facts. Self-hosted Zitadel runs on PostgreSQL 14 to 18. The path depends on where GitLab runs: self-hosted GitLab connects through an OIDC application and GitLab's openid_connect provider, while GitLab.com groups use a SAML route configured in the group's settings.
- Run Zitadel on a supported database. Confirm your PostgreSQL version falls within 14 to 18 against Zitadel's database configuration page before you deploy. Provider side: platform team or DBA.
- Create an OIDC application for self-managed GitLab. In the Zitadel console, create an OIDC application with the callback path
/users/auth/openid_connect/callbackon your GitLab hostname. Provider side: instance or organization administrator. Confirm the role name in your console version. - Configure GitLab's openid_connect provider. Point the provider at your Zitadel issuer and enter the client ID and secret, then reconfigure the Linux package. GitLab side: administrator access to the host.
- Use SAML for GitLab.com groups. Zitadel's guide for GitLab SaaS configures SAML under the group's Settings, SAML SSO, and states that the route needs the Premium tier. GitLab side: group Owner. Provider side: a SAML application in Zitadel.
- Pick one route per GitLab deployment. A self-managed instance and a GitLab.com group are configured in different places, so choose the route that matches your deployment before you create any application.
Before rollout, sign in with a test account through each route you enabled, and confirm that the redirect URI matches your GitLab hostname exactly.
The steps split into a GitLab side and a provider side, and most teams assign them to different roles. Confirm who can change each setting before the work starts, because a missing role on either side usually stops the project at the client secret or the callback step. The points below describe where admin rights are needed, not how a particular organization should grant them.
- GitLab Self-Managed. Editing the configuration file and running a reconfigure needs administrator access to the GitLab host. Confirm this with the team that runs GitLab.
- GitLab.com groups. SAML SSO is configured under the group's Settings, and the guide for Zitadel's SAML route calls for the Premium tier. Group Owner rights are needed on the group that will use the setting.
- Keycloak. Creating the OIDC client, setting token signing and confirming HTTPS and the production database need realm administrator rights along with platform and database access.
- Zitadel. Creating the OIDC or SAML application needs instance or organization administrator rights. Confirm the exact role names in the console version you run.
- Tier checks. OIDC sign-in is listed for Self-Managed in every tier from Free upward, while OIDC group membership requirements and GitLab.com SAML SSO need Premium or higher. Confirm your tier before you design group mapping.
Before go-live, ask each admin group to confirm in writing which steps they own and who can rotate the client secret on each side.
How a GitLab OIDC sign-in moves between the browser, GitLab and the identity provider
This diagram follows one sign-in from the user's browser through GitLab and the identity provider, which is Keycloak or Zitadel in this comparison. The browser starts at GitLab, is sent to the provider's login page, and returns with an authorization code at the /users/auth/openid_connect/callback path. GitLab then makes a server-side token request to the provider and creates its own session. For Keycloak, GitLab requires HTTPS and public key algorithms for token signing, so confirm both before testing. The flow shows the generic OIDC pattern and is illustrative only. SAML sign-in works differently: the provider sends GitLab a signed assertion instead of tokens.
Illustrative generic OIDC sign-in flow; the provider is Keycloak or Zitadel.
Who creates GitLab users and groups in each setup
Single sign-on and provisioning are separate jobs. Sign-in lets a user reach GitLab, while provisioning decides which users and groups exist there before anyone logs in, and the two can come from different systems. The cards below show which side of that line each identity provider covers and what to test before you rely on it.
Keycloak SCIM API
Keycloak's SCIM API lets an external system create and update users inside Keycloak, and it is listed as supported in the 26.8 release notes. It fits a setup where an HR or directory system is the source of user records. The SCIM API writes users into Keycloak, so it does not by itself create accounts in GitLab. Confirm which SCIM endpoints your Keycloak version exposes and how it handles deactivation before you design the flow.
Keycloak admin guideZitadel SCIM v2 interface
Zitadel exposes a SCIM v2 service provider interface that provisions users into Zitadel from an upstream source. Its guides do not describe pushing users out to applications, so a Zitadel setup with GitLab usually relies on users signing in or on a separate sync that you build and test yourself. Ask Zitadel which SCIM resources your version supports and whether any outbound provisioning path exists before you promise automated account creation in GitLab.
Zitadel service guidesGroup membership from OIDC claims
GitLab's documentation places OIDC group membership requirements in the Premium and Ultimate tiers, while basic OIDC sign-in is listed for Free, Premium and Ultimate. If you run the Free tier, plan for group placement by hand or through another route. If you run Premium or Ultimate, confirm that the identity provider sends group data in the token on every login, and test how quickly a group change reaches GitLab.
GitLab OIDC docsSCIM for GitLab.com groups
GitLab's documentation describes SCIM provisioning for GitLab.com groups, and its SAML SSO page for GitLab.com groups lists the Premium and Ultimate tiers. This card matters only if your GitLab is the hosted GitLab.com service, because SCIM sync runs against a group there. Confirm the tier that includes SCIM for GitLab.com groups and whether the same path applies to GitLab Self-Managed before you plan around either identity provider.
GitLab SAML SSO docsDeprovisioning and disabled users
Deprovisioning decides how quickly a leaver loses GitLab access, and the official guides for these setups do not describe it. Disabling a user in Keycloak or Zitadel may block new sign-ins, but an existing GitLab session or personal access token may keep working, and the GitLab account may remain active. Disable a test user in each provider, then check whether sign-in, active sessions and API tokens stop working, and record how long that takes.
Group mapping and claim names
Group mapping connects identity provider groups to GitLab groups and roles, and it depends on claim names set in each provider. Claim names are set in each provider, so confirm where Keycloak and Zitadel each define the groups claim, then match the name and format GitLab reads. A small mismatch, such as a case difference or a nested path, can leave users with no group at all. Test with one user per group and one user in no group before go-live.
Which GitLab integrations are documented for each provider, and which to confirm
Start with what each vendor documents. GitLab's own OpenID Connect guide includes a Configure Keycloak section with an example omniauth_providers block that requests the openid, profile and email scopes, so the Keycloak OIDC route is the one with a documented walkthrough. GitLab requires that the Keycloak server be reached over HTTPS and that Keycloak sign tokens with public key algorithms. Keycloak's documentation covers SAML 2.0 clients in general, but its GitLab example is OIDC, so a Keycloak SAML client for GitLab needs a test in a non-production instance before it appears in a plan. Zitadel publishes two GitLab guides: a SAML guide for GitLab.com groups that says it needs the Premium tier and is configured under the group's Settings, SAML SSO, and a self-hosted guide that uses the OmniAuth openid_connect provider with the redirect URI https://<gitlab>/users/auth/openid_connect/callback.
Two gaps shape the plan. Zitadel's SAML guide covers GitLab.com on Premium and does not cover GitLab Self-Managed, so a self-managed team on Zitadel has the OIDC guide as its documented route. Keycloak's SCIM API and Zitadel's SCIM v2 interface both provision users into the identity provider, so neither vendor's guide describes pushing users out to GitLab. GitLab documents SCIM provisioning for GitLab.com groups, but no vendor guide covers a process that creates, updates or disables GitLab accounts from Keycloak or Zitadel on a self-managed instance. If offboarding in GitLab must follow an identity change automatically, make it a separate test with a named owner, and confirm the GitLab side for your tier before you promise it.
Choose the Keycloak OIDC route when GitLab is Self-Managed on HTTPS, Keycloak can sign tokens with public key algorithms, and sign-in alone meets the need. OIDC group membership requirements need Premium or Ultimate, so confirm that tier if groups drive access. Choose Zitadel's SAML guide only when the group runs on GitLab.com Premium. Before committing, ask Keycloak (or your support provider) in writing whether a SAML client for GitLab Self-Managed is supported on your release and how group attributes map to GitLab groups. Ask Zitadel in writing whether SAML for GitLab Self-Managed is planned. Ask both whether changes to users can be pushed to GitLab, and get each answer in writing before the scope is signed.
How to test GitLab SSO before you move users over
This sequence proves that sign-in works for your GitLab deployment before any production user is moved. Each step produces a record or check you can keep, from the GitLab edition and tier through to a tested local sign-in path. The test plan itself is part of the written scope, so the acceptance checks are agreed before work starts.
Confirm the GitLab deployment type and tier
Start by recording how GitLab runs (Self-Managed or GitLab.com, plus the version your team operates) and which tier you hold. GitLab lists OpenID Connect sign-in for Self-Managed in the Free, Premium and Ultimate tiers, while OIDC group membership requirements sit in Premium and Ultimate, and so does SAML SSO for GitLab.com groups. Confirm the tier against GitLab's current subscription documentation before testing. The output is a short record that decides which protocol and group features you can test. Done when the platform owner and a GitLab administrator both sign it.
Stand up the provider over HTTPS
Deploy the candidate identity provider in a test environment your team operates, with a certificate chain that GitLab will trust. GitLab can only talk to a Keycloak server that uses HTTPS, and Keycloak must sign tokens with public key algorithms. Keycloak needs a relational database in production, with PostgreSQL 14 to 18 among the supported options, so the test instance should not run on the default dev-file database. Self-hosted Zitadel also uses PostgreSQL 14 to 18. Done when the OpenID discovery endpoint answers over HTTPS and the token signing algorithm is confirmed in the provider settings.
Register GitLab with the exact callback URI
Create the GitLab client or application in the provider and set the redirect URI to the exact callback GitLab expects. For a self-hosted GitLab using the OmniAuth openid_connect provider, the callback path is
/users/auth/openid_connect/callbackunder your own GitLab hostname. Then configure the GitLab side with an omniauth_providers block that follows GitLab's OpenID Connect documentation, using the Keycloak label and the openid, profile and email scopes. Done when GitLab loads the configuration without error and the sign-in button appears on the test instance.Map the claims or groups GitLab needs
Decide which claims GitLab reads from the token, such as the stable user identifier, name and email, and whether a group claim should control access. Keep the group requirement in mind, because OIDC group membership is available only in the Premium and Ultimate tiers. In Keycloak, configure the client scopes and mappers that emit these claims. In Zitadel, confirm in its current documentation which mechanism emits them. Provisioning is a separate question: Keycloak's SCIM API provisions users into Keycloak, and Zitadel's SCIM v2 provisions users into Zitadel, but the guides reviewed do not describe pushing users out to GitLab, so confirm that with the vendor. Done when a test token shows every claim GitLab needs, and the platform owner and GitLab administrator sign the claims table.
Test sign-in with standard and admin users
Sign in as a standard user and as a GitLab administrator, each from a fresh browser session, and record what GitLab creates or matches on first login. Check the account link, the email match and any group-driven access your tier supports. Repeat with a user who lacks the required group to confirm that access is denied. Then disable the test user at the provider and confirm the change behaves as your policy expects. Done when each test case has a recorded result, a log extract or screenshot, and a named owner who reviewed it.
Confirm the local sign-in path before enforcement
Before SSO is enforced, confirm with your GitLab documentation and your own settings how administrators keep a local sign-in path if the identity provider is unavailable. Write down who holds the break-glass credentials, where they are stored, and how a test confirms they still work without touching production users. Ask GitLab support or your account team to confirm in writing how password sign-in and SSO enforcement interact on your version, since that depends on your version and settings. Done when a named administrator has signed in through the local path in test and the procedure is in the runbook.
What buyers ask before hiring help with GitLab SSO
How much effort does GitLab SSO with Keycloak take, and what drives it?
Effort depends on four drivers: your GitLab tier, whether GitLab runs as self-managed or on GitLab.com, whether Keycloak is served over HTTPS, and how far you take group mapping and provisioning. GitLab's OpenID Connect sign-in for self-managed instances is listed in the Free, Premium and Ultimate tiers, but group membership from OIDC requires Premium or Ultimate, so the tier decides whether group mapping is in scope at all. GitLab only talks to a Keycloak server that uses HTTPS, and Keycloak must sign tokens with public key algorithms, so certificate and signing checks often come first. Each group rule needs a decision, a test and an owner. Provisioning is a separate scope from sign-in, so confirm in writing whether it is included. DeployOpen works from a written scope and does not publish a price list, so ask for a quote that separates each driver.
How long does a GitLab SSO project with Keycloak take?
The timeline follows from the written scope, so no duration can be stated before one exists. The main variables are how many GitLab instances or groups are in scope, whether group mapping and provisioning are included or left for later, whether Keycloak already runs over HTTPS with a valid certificate, and how quickly your administrators can approve changes and provide test accounts. A sign-in-only setup against an existing Keycloak realm is a smaller piece of work than a setup that adds group mapping, provisioning and a documented handover. Ask for a timeline tied to milestones, such as a working test sign-in, a group test and a production cutover, and ask which milestones depend on your team's responses. Any duration given before the environment has been reviewed should be treated as a guess until it appears in the written scope.
What does a GitLab SSO project need from our team?
A GitLab SSO project needs four things from your side before work starts: administrator access, DNS and certificate decisions, test accounts, and a decision on groups. On GitLab, you need an administrator who can edit the OmniAuth configuration and sign-in settings. On Keycloak, you need an administrator who can create the client, mappers and realm settings. Your DNS team must publish hostnames for both services, and the certificates must be valid for them, because GitLab only talks to Keycloak over HTTPS. Testers need several accounts across the groups you plan to map, including accounts that should be denied access. The group decision is the input everything else depends on: someone must state which Keycloak groups map to which GitLab groups and roles before configuration starts. Confirm these items in the written scope so the work does not wait on access.
Can our own engineers set up GitLab SSO with Keycloak alone?
For a basic sign-in, often yes, but confirm the boundaries before deciding. Both vendors document OpenID Connect, and GitLab's OpenID Connect documentation includes a Configure Keycloak section with an example omniauth_providers block, so a team with GitLab and Keycloak administration skills can complete a first sign-in test. The gaps sit in details that fail quietly: HTTPS on every endpoint, token signing with public key algorithms, the openid, profile and email scopes, group claims that match your mapping, and sign-in tests with accounts that should fail. Provisioning, which creates and removes users automatically, needs its own test. If nobody on your team has time to run those tests and document the results, that gap is the reason to bring in help. DeployOpen implements, integrates and documents self-hosted platforms in your environment under a written scope.
What recurring costs come after GitLab SSO goes live?
The recurring costs are the GitLab subscription, the Keycloak hosting and operating effort, and any support or retainer you add on top. The GitLab tier is a recurring decision in its own right, and group membership from OIDC requires Premium or Ultimate, so settle that before the design is fixed. Keycloak's Apache-2.0 license does not add a license fee to the server itself, but you still pay for the database, monitoring and the staff time to run it. The project plans four minor releases a year, so each one needs a test window and an upgrade decision. Major releases come every two to three years, and the project says breaking changes in minor releases are opt-in. Ongoing support, upgrades and continuous testing are available as DeployOpen retainers, scoped separately in writing.
What should a GitLab SSO quote include?
A useful quote starts with the written scope: which GitLab instances or groups are included, whether the work covers sign-in only or also group mapping and provisioning, and which Keycloak realms and clients are covered. It should name the versions to be tested, including the GitLab version and the Keycloak release, and a test plan that lists each sign-in, group and denial case. It should also list deliverables such as configuration records, runbooks and a handover session with your administrators. Ask what is excluded, who performs the testing, and how a version change during the work is handled. Finally, ask what ongoing support is offered and how it is priced. DeployOpen does not publish a price list, and a quote follows from the written scope, so compare vendors on the scope document itself.
How DeployOpen sets up GitLab SSO without favoring either provider
DeployOpen plans, implements, integrates, hardens and documents GitLab single sign-on inside your own infrastructure, with Keycloak or Zitadel as the identity provider. The choice between them depends on your GitLab tier, protocol needs and existing directory, so the written scope records those inputs before any build starts. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins.
How we scope
- The written scope records your GitLab tier, because OIDC group membership requires Premium or Ultimate.
- It lists which protocol GitLab will use, OpenID Connect through OmniAuth or SAML, for each environment.
- It names any existing directory the identity provider must read, such as LDAP or Active Directory.
How we build
- Configure the identity provider with HTTPS and public key token signing, the requirements GitLab documents for Keycloak.
- Build the OmniAuth openid_connect block or SAML settings for the chosen provider and test sign-in before handover.
- Register the GitLab OmniAuth callback path with whichever provider is chosen, and check it matches the external URL exactly.
How we hand over
- Documentation covers the chosen configuration, admin settings, secrets handling and client secret rotation.
- Handover records which GitLab tier features were tested, such as SSO sign-in and group membership, and which were not.
- Backup and upgrade steps for the identity server are documented so your team can run them after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the build.
- Upgrade planning covers the identity provider and the GitLab settings that depend on it.
- Security testing of the SSO setup, including admin settings and access control, can be scoped alongside the build.

