Auth0 vs Keycloak for GitLab SSO

Auth0 suits teams that want a managed identity provider and accept a hosted tenant. Keycloak suits teams that must keep identity inside their own infrastructure and can run it. Both have documented GitLab paths, but the supplied documentation differs in depth.

On this page

Auth0 vs Keycloak for GitLab SSO: which one fits your instance

Choose between Auth0 and Keycloak for GitLab SSO by four conditions: where identity data may be hosted, who operates the identity server, which GitLab tier you run, and whether you need SAML or OpenID Connect (OIDC). Either option gives your people one login to a GitLab Self-Managed instance or to GitLab.com groups, but they get there differently. Auth0 fits a team that wants a managed, hosted identity provider. GitLab documents it on its Auth0 OmniAuth page for Self-Managed in the Free, Premium and top tiers, and setup starts with an Auth0 account and application. Keycloak fits a team that wants self-hosted control inside its own infrastructure, using OpenID Connect and SAML 2.0, with a Configure Keycloak section in GitLab's OIDC documentation.

The first deciding condition is data location. Auth0 is a hosted provider, so your users' identity records sit with Auth0 under its plans. Auth0 Private Cloud is a dedicated managed deployment on AWS or Azure for customers who need isolation or guaranteed capacity. Keycloak runs in your own cloud accounts, data centers or air-gapped networks, but it needs a relational database in production, and you or your implementation partner run its upgrades. The second condition is the GitLab tier. SAML SSO for Self-Managed is available in Free, Premium and the top tier, while SAML SSO for GitLab.com groups and OIDC group membership requirements need Premium or the top tier. Confirm your tier before you design group mapping. The third condition is the protocol. GitLab's OIDC page requires an HTTPS provider and, for Keycloak, token signing with public key algorithms.

Before you choose, check three things in writing. First, ask Auth0 which deployment option and data location apply to your tenant, and whether a private deployment meets your residency rules, since the public Auth0 cloud is multi-tenant. Second, confirm user provisioning for your tier. Keycloak's SCIM API is listed as supported in its 26.8 release notes, and GitLab describes SCIM provisioning for GitLab.com groups, but confirm the Self-Managed path before you plan around it. Third, compare cost structures. Auth0 prices by monthly active users, and its Free plan covers up to 25,000 of them, with paid plans scaling from there. Keycloak's Apache-2.0 license carries no license fee, but you pay for infrastructure, the database and the staff who run it. For the general platform picture, see the separate Auth0 vs Keycloak comparison.

Which GitLab sign-in options and tiers apply to each provider

Start with the protocol, because it decides which GitLab deployment model and tier you need. GitLab Self-Managed supports SAML SSO and OpenID Connect sign-in in the Free, Premium and Ultimate tiers, while SAML SSO for GitLab.com groups is limited to Premium and Ultimate.

  • Keycloak on OpenID Connect: Keycloak supports OpenID Connect, OAuth 2.0 and SAML 2.0, and GitLab documents an OpenID Connect path with a Keycloak example for Self-Managed in every listed tier.
  • Keycloak on SAML: Keycloak's SAML 2.0 support makes it a candidate for the Self-Managed SAML path, but confirm the client settings against GitLab's SAML page before you plan around it.
  • Auth0 on OpenID Connect: GitLab documents an Auth0 OmniAuth provider for Self-Managed in the Free, Premium and Ultimate tiers. Setup starts with an Auth0 account and application, and the values come from the application's Settings tab.
  • No Auth0 SAML path: No Auth0 SAML path for GitLab is documented. Ask GitLab and Auth0 to confirm this before you design around SAML with Auth0, because a SAML requirement would change the provider decision.

Confirm your GitLab edition and whether you run Self-Managed or GitLab.com before you choose a protocol, because GitLab.com group SAML is not available on Free.

Auth0 vs Keycloak for GitLab SSO, side by side

This table compares Auth0 and Keycloak as the identity provider behind GitLab Self-Managed sign-in, row by row against what GitLab and each vendor document. Where a cell says to confirm, the public documentation does not settle the point, so ask the vendor or GitLab before you decide. The main takeaway is that Auth0 is a managed service with a dedicated private option, while Keycloak is a server you run yourself, which changes who owns hosting, upgrades and provisioning work.

AreaAuth0Keycloak
Documented GitLab pathGitLab's Auth0 OmniAuth provider page for GitLab Self-Managed, listed for Free, Premium and UltimateGitLab's OpenID Connect page, with a Configure Keycloak section and an example omniauth_providers block
Protocols used with GitLabOAuth 2.0 through the Auth0 OmniAuth provider. Confirm with Auth0 and GitLab whether any SAML path applies to your tier.OpenID Connect through the OmniAuth openid_connect provider. Keycloak also speaks SAML 2.0, so confirm whether you need that path.
Deployment modelMulti-tenant public cloud by default. Private Cloud is a dedicated managed deployment on AWS or Azure.Self-hosted server. Production needs a relational database, such as PostgreSQL 14 to 18.
Data location and hosting controlAuth0 hosts the tenant. Private deployment is an Enterprise plan add-on, so confirm regions and data location with Auth0.You choose the hosting location and the database. Backup, patching and upgrade work sits with your team or a partner.
Tier needed for group membershipGitLab Premium or Ultimate for OIDC group membership. Confirm the Auth0 group claim setup with GitLab.GitLab Premium or Ultimate for OIDC group membership. Confirm the Keycloak group claim mapping with GitLab.
SCIM or other provisioningNot covered by the GitLab Auth0 page. Confirm any provisioning option for GitLab Self-Managed with Auth0 and GitLab.Keycloak exposes a SCIM API for provisioning users into Keycloak. GitLab documents SCIM for GitLab.com groups, so confirm Self-Managed options with GitLab.
Documented setup sourceCreate an Auth0 account and application, then copy the settings from the application's Settings tab.GitLab's Configure Keycloak section, with client setup in the Keycloak Server Administration Guide.
Open questionsOwned by Okta since May 3, 2021. Confirm plan fit for your user count, regions and group claims.GitLab needs HTTPS and public-key token signing, so confirm your Keycloak signing setup and who runs upgrades.

How the GitLab setup differs for Auth0 and Keycloak

Auth0 is a hosted identity service, so setup begins in an Auth0 tenant and ends in your GitLab configuration. GitLab's Auth0 page walks through creating the account and application, then copying the connection values into GitLab's Auth0 OmniAuth configuration on your GitLab Self-Managed instance.

  • Account and application: Create the Auth0 account and register an application for GitLab. This application is the identity provider record that GitLab trusts.
  • Settings tab values: Copy the values shown on the application's Settings tab, such as the domain, client ID and client secret. Keep the client secret out of tickets and shared notes.
  • OmniAuth configuration: Enter those values in GitLab's Auth0 OmniAuth configuration exactly as the GitLab page names them, then apply the change using the steps that page gives.
  • Plan and cost: Auth0 prices by monthly active users, and its pricing page states that the Free plan supports up to 25,000 MAUs. Confirm which plan covers your user count before you commit.

Before you save, check that the callback address registered in the Auth0 application matches the address GitLab shows for your instance URL.

How a GitLab login moves between the user and the identity provider

The diagram starts when a user opens GitLab and chooses the provider sign-in, so GitLab redirects the browser to Auth0 or Keycloak. The user authenticates at the provider, which applies its own password and MFA policy, and the provider returns an OpenID Connect token or a SAML assertion to GitLab. GitLab then matches the identity to an existing account or creates one, and applies group claims only where your GitLab tier supports group membership from the provider. Check which claims each protocol sends and confirm tier support in GitLab's documentation before you rely on them.

Generic login flow for GitLab with Auth0 or Keycloak, shown as a sequence.

Who creates users and groups in GitLab for each provider

Each provider shapes GitLab accounts and groups in a different place, so the same SSO login can produce different results. Use these cards to separate what GitLab does on first sign-in, what the identity provider can push, and what you must still confirm before you pick a provider.

Account creation at first sign-in

Question to confirm: whether GitLab creates a Self-Managed account on a user's first OpenID Connect or SAML sign-in, or whether an administrator must create it first. The answer decides who needs a pre-created GitLab account before access works, and it applies to both providers. Test with a user who has never signed in, and check the GitLab OIDC and SAML pages for the version you run.

Group membership from OIDC claims

Documented: OIDC group membership in GitLab requires the Premium or Ultimate tier, while OIDC sign-in is listed for Free, Premium and Ultimate on Self-Managed. The group data has to arrive as a claim in the token, so the first check is whether your provider can emit a group claim with the name and values GitLab expects. Confirm that for Keycloak and Auth0 in your own tenant before you pay for a tier, and check the claim settings in the GitLab OIDC page for your version.

SCIM for GitLab.com groups

Documented for GitLab.com: GitLab's docs describe SCIM provisioning for GitLab.com groups, and SAML SSO for GitLab.com groups is listed for Premium and Ultimate. That coverage applies to GitLab.com groups only. For Self-Managed instances, confirm whether SCIM is available, at which tier and for which provider before you design a provisioning flow around it. Until then, treat Self-Managed SCIM as a question to confirm.

GitLab.com SAML docs

Keycloak SCIM API for user provisioning

Documented: Keycloak's Server Administration Guide describes a SCIM API that lets external systems provision users into Keycloak, and the 26.8 release notes list SCIM API support. Calls to this API create users in Keycloak only. GitLab accounts are a separate step with their own owner, timing and checks. Confirm which external system will call the API, how it maps attributes, and whether the GitLab side receives the same change.

Keycloak admin guide

Auth0 provisioning options for GitLab

Question to confirm: Auth0 is documented for GitLab Self-Managed as an OAuth 2.0 sign-in provider, set up from the application's Settings tab. What is not yet established is whether any Auth0 feature creates or updates GitLab users or groups. Ask Auth0 directly whether such a path exists, which plans include it and what it takes to run. Until that answer is in writing, plan for Auth0 as a sign-in source only.

GitLab Auth0 page

Deprovisioning on each path

Question to confirm: what happens to a GitLab account when a user is removed or disabled at Keycloak or Auth0, and whether group membership clears with it. The answer depends on the path, because a disabled identity at the provider may leave a GitLab account active if no provisioning step reaches GitLab. Test both providers with a disposable user, record the result, and set a review schedule for leavers. Keep this as an open item until the test passes.

Where the documentation stops for each provider

The first gap sits on the Auth0 side. GitLab's documentation for Auth0 covers only an OAuth 2.0 setup through the OmniAuth provider for GitLab Self-Managed, listed for the Free, Premium and Ultimate tiers. You create an Auth0 account and application, then copy the settings from the application's Settings tab. The page documents no SAML or SCIM path from Auth0 to GitLab, so do not assume one exists. Ask Auth0 in writing whether it can federate GitLab Self-Managed over SAML and whether it can push user and group changes to GitLab. Ask GitLab which SAML and SCIM options apply to your tier, because its SCIM provisioning description covers GitLab.com groups, and you need to confirm whether the same applies to your self-managed instance. GitLab's Auth0 page is the starting point for that conversation.

On the Keycloak side, GitLab's OpenID Connect documentation includes a Configure Keycloak section with an example omniauth_providers block that uses the label Keycloak and the openid, profile and email scopes. It does not include a Keycloak to GitLab SAML walkthrough, so a SAML design needs its own proof of concept before the design is fixed. Keycloak's SCIM API lets external systems provision users into Keycloak, which runs in the opposite direction from creating accounts in GitLab. Confirm with Keycloak and GitLab which component, if any, creates users and group memberships in GitLab. Also confirm that the GitLab OIDC requirements, HTTPS on the provider and public key algorithms for signed tokens, hold in your realm and load balancer configuration.

Version drift is the Keycloak risk to plan for. Since Keycloak 26.0, the project plans four minor releases a year and says breaking changes in a minor release will be opt-in, so new behavior should not apply until you enable it. You still need to read the release notes for each minor release and rerun GitLab sign-in after any change that touches the client configuration, not only after major upgrades. Keycloak 26.8.1, released on October 13, 2026, is the current version. On the Auth0 side, Private Cloud and the 99.99% SLA are plan and hosting facts from Auth0's pricing and documentation, and the SLA is limited to the Enterprise plan. Neither fact says how GitLab sign-in behaves, so confirm with Auth0 which plan and hosting model your data location requires, and get the SLA terms in writing.

Auth0 vs Keycloak for GitLab SSO: what the work needs from your team

Can our own team set up Auth0 or Keycloak for GitLab SSO?

Yes, if the team holds GitLab administrator access and identity provider administrator access and can make the group mapping decisions. GitLab publishes setup steps for both Auth0 and Keycloak, so a team that has configured an OIDC or SAML integration before can follow them. For Auth0, the GitLab Auth0 page has you create an Auth0 account and application, then copy the settings from the application's Settings tab into GitLab. The work grows as the number of groups and GitLab tiers grows, because each mapping rule needs its own testing and upkeep. Keycloak adds more: your team also runs the server, its database and its HTTPS endpoint. A team without an identity administrator on staff should count that gap in its decision before starting.

What makes GitLab SSO setup harder: tier, protocol, groups or certificates?

The main drivers are the GitLab tier, the protocol, group mapping and, for Keycloak, the HTTPS and certificate setup. Basic sign-in works on every tier: GitLab lists OpenID Connect sign-in and SAML SSO for Self-Managed in the Free, Premium and Ultimate tiers. Group-based rules are where the tier matters, since OIDC group membership requirements are listed for Premium and Ultimate, and SAML SSO for GitLab.com groups is listed for Premium and Ultimate. Check these drivers against your setup:

  • GitLab tier and deployment type (Self-Managed or GitLab.com)
  • Protocol, SAML or OIDC, each with its own configuration
  • Group mapping, which adds testing with every group you add
  • For Keycloak, an HTTPS endpoint, valid certificates and token signing with public key algorithms, as GitLab's OpenID Connect page requires

Confirm each item against GitLab's current pages before you design the mapping.

How long does an Auth0 or Keycloak GitLab SSO project take?

The timeline comes from the written scope, so the schedule is set when the scope is agreed, not from a standard duration. Describe the GitLab tier and deployment type, the protocol, the identity provider, the number of groups and mapping rules, and the environments in scope. Those items decide how many configuration and test cycles the work needs. Other factors that move dates include whether Keycloak needs new hosting or a database, how many administrators are available for testing, and whether your change process requires approvals before cutover. DeployOpen typically works on fixed scope, with scope, deliverables and timelines agreed in writing before work starts. Ask any provider for milestones covering build, a non-production test, user acceptance, cutover and handover.

What access and decisions does our team need to provide?

Your team needs GitLab administrator access, identity provider administrator access, and a named owner for each group mapping decision. Each access item has a specific job during the work:

  • GitLab administrator access to configure the sign-in provider and test accounts
  • Identity provider administrator access to create the application or client, set redirect addresses and control which groups or claims GitLab receives
  • Decisions on group mapping: which groups receive which GitLab roles, and who approves changes later
  • For Keycloak, an owner for the hostname, certificate and token signing settings
  • Test users in each group for acceptance testing

Grant administrator rights for the setup window and remove them afterward. Store the client secret in your secrets process, not in a shared document, and agree who rotates it.

What does Auth0 cost for GitLab SSO, and what drives it?

Auth0 is paid by plan and monthly active users, while Keycloak has no license fee but carries hosting, database and upkeep costs. Auth0 offers Free, Essentials, Professional and Enterprise plans priced by monthly active users, which Auth0 defines as non-internal users who authenticated during a month for a given tenant. The Free plan supports up to 25,000 monthly active users, so check how your staff are classed before estimating. Some features sit only on higher plans: custom database connections start on Professional, and private deployment as an add-on and a 99.99% SLA are Enterprise only. Keycloak is Apache-2.0 licensed, so your costs are infrastructure, a production relational database, and the people who build and run it. Ask for a quote on your user count and environments.

What should we ask for in a GitLab SSO quote?

Ask for a quote that follows a written scope listing the GitLab tier and deployment type, the protocol, the identity provider, the number of groups and mapping rules, and the environments in scope. The quote should also state who performs each step, what is handed over at the end, and which testing and documentation are included. For Keycloak, include the HTTPS and certificate work, who provides hosting and the database, and how upgrades are handled. Ask whether post-go-live support is a separate retainer. DeployOpen does not publish a price list; a quote follows from the written scope, which is agreed before work starts. Ask every provider to confirm feature availability against its current documentation before you sign.

How DeployOpen sets up GitLab SSO on either provider

DeployOpen sets up GitLab single sign-on with Auth0 or Keycloak inside your own cloud accounts, data centers or air-gapped networks. Work starts from a written, fixed scope that names the GitLab tier, the provider and the sign-in methods in use. The steps below show what is scoped, built, documented and supported on either side of the comparison.

How we scope

  • The written scope records your GitLab tier, because OpenID Connect group membership requires Premium or Ultimate.
  • For Auth0, the scope confirms which plan and tenant you hold before any configuration starts.
  • For Keycloak, the scope fixes the realm, the HTTPS hostname and the token signing algorithms before build begins.

How we build

  • On Auth0, create the application and take the settings from its Settings tab, as GitLab's provider page describes.
  • On Keycloak, configure the client and check the omniauth_providers block against GitLab's Keycloak example and its scopes.
  • Confirm HTTPS on the Keycloak endpoint and public key signing algorithms for tokens, both required by the GitLab OpenID Connect documentation.

How we hand over

  • Handover includes written documentation of the Auth0 or Keycloak settings and the matching GitLab configuration.
  • Documentation covers sign-in test steps, the provisioning approach you chose and the limits that apply to your tier.
  • Backup and upgrade steps are written down so your own team can run them after handover.

How we support

  • Ongoing support, upgrades and continuous testing can be added as a retainer after the fixed-scope handover.
  • Keycloak plans four minor releases a year, so the retainer scope should name the release line you run.
  • Ask in your quote which Auth0 plan, GitLab tier and upgrade work the written scope includes.

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.