Which identity provider fits GitLab SSO: Microsoft Entra ID or Keycloak?
Choose Microsoft Entra ID when your staff already sign in through Microsoft 365 or Azure and you are comfortable with Microsoft operating the identity service under its cloud terms. Choose Keycloak when the identity server itself has to run in your own cloud accounts, data centers or air-gapped networks. Both work with GitLab Self-Managed over OpenID Connect, so the protocol does not decide this on its own. The decision depends on where your users already authenticate, where identity data may be stored and who carries the operating work. The general platform comparison between these two products sits on its own page, so this section covers only the identity provider choice for GitLab.
The Entra condition is a location decision made early. An Entra ID tenant's data location follows the country or region chosen when the tenant is created, and it cannot be changed afterward, so a change of region later is not a setting you can flip. Confirm that location with your data protection and compliance leads before anyone creates the tenant. Entra ID Free comes with Microsoft cloud subscriptions such as Azure and Microsoft 365, so many teams already have a tenant. GitLab's Azure guide asks you to grant at least the openid, profile and email API permissions and uses the Microsoft identity platform v2 endpoints, so check those settings with your Entra administrator before you test sign-in.
Keycloak is the choice when self-hosting the identity server is a requirement, and it moves operating duties onto your team. GitLab's documentation says it can only talk to a Keycloak server that uses HTTPS, and that Keycloak must sign tokens with public key algorithms. Production Keycloak needs a relational database, so plan for PostgreSQL 14 to 18 or another supported engine, and treat the default development file database as unsuitable. Budget for certificate renewal, database backup and restore, and signing key management. The omniauth_providers example in GitLab's OpenID Connect documentation uses a Keycloak label with the openid, profile and email scopes, which gives you a starting configuration to test in a non-production instance first.
Microsoft Entra ID and Keycloak side by side for GitLab SSO
This table compares how Microsoft Entra ID and Keycloak fit GitLab sign-in, from documented protocol paths and tier rules to transport, signing, provisioning and data location. Read each row for the condition that decides the outcome, and check anything marked to confirm against GitLab's current documentation and your own tenant or server. The main takeaway is that GitLab's tier rules are listed by protocol, so the identity provider choice turns mostly on where your identities live and who runs them.
| Integration aspect | Microsoft Entra ID | Keycloak |
|---|---|---|
| Documented GitLab protocol paths | OIDC through the Azure OmniAuth page (Microsoft identity platform v2 endpoints) and SAML through a Set up Microsoft Entra ID section. | OIDC through a Configure Keycloak section in GitLab's OpenID Connect docs. Confirm the Keycloak SAML steps in GitLab's SAML docs. |
| Vendor-specific GitLab setup guidance | Dedicated Azure page plus a Microsoft Entra ID section, so both protocol paths have Microsoft-specific steps to follow. | Example omniauth_providers block labeled Keycloak, with openid, profile and email scopes. Confirm the client settings for your Keycloak version. |
| Tier rules | Self-Managed: OIDC sign-in and SAML SSO in Free, Premium and Ultimate. OIDC group membership needs Premium or Ultimate. GitLab.com groups: SAML in Premium and Ultimate. | Same tier rules, because GitLab lists them by protocol rather than by provider. Confirm the tier for your GitLab version before purchase. |
| Transport and signing requirements | Grant at least openid, profile and email API permissions. Custom signing keys from SAML claims mapping need special OpenID provider settings. | GitLab connects only to Keycloak servers that use HTTPS, and Keycloak must sign tokens with public key algorithms. |
| SCIM into GitLab | GitLab's docs describe SCIM provisioning for GitLab.com groups. Confirm whether your Self-Managed setup and Entra configuration are supported. | Keycloak's SCIM API provisions users into Keycloak itself. Confirm with GitLab how provisioned users and groups reach GitLab. |
| Identity data location | Set by the country or region chosen at tenant creation and cannot change later. MFA data is stored in North America and/or the tenant geo-location. | Data sits in the relational database you run, such as PostgreSQL 14 to 18. Confirm residency against your own infrastructure controls. |
| Operating model and licensing | Microsoft runs the service. Per Microsoft's Entra pricing page, P1 is from $7.00 and P2 from $10.00 per user per month with annual commitment. | Apache-2.0 licensed and run in your infrastructure, so you own upgrades, patching and the database. Current release is Keycloak 26.8.1. |
| Cost components to confirm | Confirm which Entra license covers the GitLab features you plan to use before budgeting per-user fees. | No per-user license fee for the server itself. Hosting, database and staff time are your costs, so scope them in writing. |
What GitLab requires for SSO on each plan
Whichever provider you choose, GitLab's tier rules decide which sign-in features your plan can use. On GitLab Self-Managed, OpenID Connect sign-in is listed for Free, Premium and the highest tier, and SAML SSO is listed for the same three tiers. OIDC group membership needs Premium or the highest tier, so a Free instance has to grant group access inside GitLab. For GitLab.com groups, SAML SSO is listed for Premium and the highest tier. SCIM provisioning is described for GitLab.com groups only, so do not assume the same provisioning path exists on Self-Managed. Check the current tier table in the GitLab SAML SSO for GitLab.com groups guide before you commit, since tier placement can change.
Confirm with Microsoft licensing which Entra ID tier GitLab needs, because this page does not name one. Microsoft's Entra pricing page lists Entra ID P1 from $7.00 and P2 from $10.00 per user per month with annual commitment. Those are recurring per-user charges, so the annual total depends on your user count and commitment terms. Entra ID Free comes with Microsoft cloud subscriptions and includes single sign-on to SaaS apps, but that is a general Microsoft feature, not a documented GitLab integration. Ask Microsoft to confirm whether the OIDC or SAML setup you plan, along with the group claims you need, works on Free, P1 or P2 in your tenant.
Keycloak is licensed under Apache-2.0, so its license adds no tier gate on the GitLab side. Its cost is the infrastructure and staff needed to run it. Before the project starts, build a short check. For each feature you need (OIDC sign-in, OIDC group membership, SAML, SCIM), record the deployment type (Self-Managed or GitLab.com groups), the tier GitLab lists for it and the identity provider license that covers your use. Get the GitLab tier confirmed in writing from GitLab, then test the Keycloak side against the same list in a non-production instance so the decision rests on what you verified.
How a GitLab sign-in flows through Entra ID or Keycloak
This simplified OpenID Connect sign-in starts when a user chooses to sign in to GitLab, which redirects the browser to Microsoft Entra ID or Keycloak. The identity provider runs the sign-in and any multifactor step it enforces, then returns an authorization code through the browser. GitLab then makes an HTTPS token exchange with the provider and validates the signed ID token. Check that the provider endpoints use HTTPS, that the requested scopes include openid, profile and email, and that Keycloak signs tokens with a public key algorithm. SAML flows are not shown.
Simplified OpenID Connect sign-in; SAML flows are not shown.
GitLab SSO setup steps for Entra ID and Keycloak
Microsoft Entra ID has the most direct GitLab guidance for OpenID Connect. GitLab's Microsoft Azure OmniAuth page covers GitLab Self-Managed in the Free, Premium and Ultimate tiers and uses the Microsoft identity platform v2 endpoints. Work through the steps in order, because the claims settings depend on the app registration you create first.
- App registration: Register an application in your Entra tenant, use the v2 endpoints named in GitLab's page, and set the redirect URI that matches your GitLab hostname exactly.
- API permissions: Grant at least the openid, profile and email permissions. Confirm with your tenant administrator whether admin consent is required before users can sign in.
- Client credentials: Create a client secret and record the tenant identifier, client ID and secret for the GitLab provider block. Keep the secret in your secrets manager, not in configuration files kept in source control.
- Custom signing keys: If your tenant uses custom signing keys from SAML claims mapping, GitLab's page says you need special OpenID provider settings. Apply them exactly as written, because they change how GitLab validates tokens.
- Tenant location: The tenant's data location is mapped from the country or region chosen at creation and cannot be changed afterward, so confirm it with your data residency owner before you create the registration.
Before go-live, sign in with a test account, confirm that group membership is not assumed for your tier, and record the GitLab version you tested.
Keycloak is self-hosted, so GitLab connects to a Keycloak endpoint you run. GitLab's OpenID Connect documentation has a Configure Keycloak section, and it states two preconditions: GitLab can only talk to a Keycloak server that uses HTTPS, and Keycloak must sign tokens with public key algorithms. Meet both before you configure the client.
- HTTPS endpoint: Serve Keycloak over HTTPS with a certificate that your GitLab server trusts. GitLab's configuration depends on this endpoint, so test it from the GitLab host, not only from your browser.
- OpenID Connect client: In the realm GitLab will use, create an OpenID Connect client with the redirect URI for your GitLab instance, following the Server Administration Guide for your release.
- Public key token signing: Set the client so Keycloak signs tokens with a public key algorithm, as GitLab requires. Confirm the exact algorithm name against the GitLab section for your version.
- omniauth_providers block: Add the openid_connect provider to the GitLab configuration with the label Keycloak, the issuer URL for your realm, and the openid, profile and email scopes.
- Production database and Operator: Production needs a relational database, with PostgreSQL 14 to 18 among the supported options, and the development file database is not suitable. On Kubernetes, the Keycloak Operator installation guide describes installation through Operator Lifecycle Manager, which Keycloak recommends, or with kubectl. The current release is 26.8.1, published October 13, 2026, so plan your upgrade path before go-live.
Before go-live, test the redirect URI, signing algorithm and realm issuer in a non-production realm, and record the Keycloak version you tested.
SAML is an alternative route for Microsoft Entra ID, and the documented GitLab path for Keycloak is OpenID Connect. GitLab's SAML SSO page includes a Set up Microsoft Entra ID section and lists SAML SSO for GitLab Self-Managed in the Free, Premium and Ultimate tiers, and for GitLab.com groups in the Premium and Ultimate tiers. There is no documented GitLab-specific SAML setup for Keycloak that this page can confirm, so Keycloak's SAML 2.0 support should be tested before you rely on it.
- Entra SAML route: Use the Set up Microsoft Entra ID section as the alternative to OpenID Connect, and confirm that it fits your tier and your GitLab release before you choose it.
- Tier availability: OpenID Connect sign-in is listed for Free, Premium and Ultimate on GitLab Self-Managed, but OIDC group membership requirements are Premium and Ultimate. Plan group-based access against the tier you actually buy.
- Keycloak SAML: Keycloak supports SAML 2.0 clients, but whether GitLab accepts your attribute names and group claims is something to test with a pilot group.
- Claims and groups: Decide before go-live whether GitLab group membership will come from token claims, and document which claim carries it for each identity provider.
- Limits to confirm: Confirm HTTPS on the Keycloak endpoint, public key token signing, and the release notes for both GitLab and your identity provider before you commit to a route.
Run a pilot with one test group on the route you choose, and record the GitLab version, tier and identity provider release you tested.
How GitLab SSO provisioning differs by provider
The two providers differ less in whether they can sign users in than in what they create, link and remove on the GitLab side. The cards below separate sign-in linking, group mapping, SCIM and offboarding, and flag where the documentation is silent so you can test those points before you commit to a design.
First sign-in account linking
On a user's first sign-in through Microsoft Entra ID or Keycloak, GitLab either creates a new account or links the login to an existing one, and the matching rules decide which account a person ends up with. The supplied documentation does not settle how this works for either provider, so test first sign-in with a new user and with an existing user who has the same email address. Record whether a duplicate account appears and what happens when the email attribute changes at the provider.
Group membership and tier rules
GitLab can assign group membership from claims sent by the identity provider, but GitLab's OpenID Connect documentation lists group membership requirements for Premium and Ultimate only. Each provider emits group information differently, so Entra group claims and Keycloak protocol mappers must each be set up and checked against the same GitLab group names. Confirm your GitLab edition before you design around group sync, then test one user in each group.
GitLab OIDC documentationSCIM provisioning into GitLab
SCIM is the standard way an identity provider creates, updates and disables accounts and group memberships automatically. GitLab's documentation describes SCIM provisioning for GitLab.com groups, and the supplied sources do not confirm the same path for GitLab Self-Managed, so confirm SCIM support for your self-managed version with GitLab before you plan around it. Ask which identity provider connections it supports and which attributes it maps.
GitLab SAML SSO for groupsKeycloak's SCIM API
Keycloak's SCIM API lets an external system provision users into Keycloak, and the server administration guide documents it. That path creates accounts in Keycloak only. The supplied sources do not document a route from Keycloak's SCIM API to GitLab accounts, so ask GitLab which mechanism provisions GitLab accounts before you treat Keycloak as the source of truth for them.
Keycloak admin guideEntra user lists and Entra Connect
Microsoft Entra ID offers a bulk download of its user list, and Entra Connect synchronizes on-premises Active Directory objects up into Entra ID. Both move identity data in one direction for review or hybrid sync, and the supplied sources document no Entra-to-GitLab path that creates or updates GitLab accounts. Use the download to reconcile who should have access, and confirm with GitLab and Microsoft whether any such path exists in your tenant before you assume one.
Entra user downloadDeprovisioning and offboarding
Deprovisioning decides how quickly a leaver loses GitLab access, and the main risk sits in the gap between disabling the identity at the provider and disabling the GitLab account. The supplied documentation does not describe deprovisioning for either Microsoft Entra ID or Keycloak with GitLab, so test offboarding end to end with a disabled test user. Check that the active GitLab session ends, group memberships are removed and any personal access tokens stop working.
Documented limits of GitLab SSO on each provider
The written limits start with protocol and token settings, and they differ by provider. GitLab's OpenID Connect page requires the OpenID provider to be reached over HTTPS, and for Keycloak it requires tokens to be signed with public key algorithms. Check the signing algorithm on the Keycloak client before you copy the omniauth block from GitLab's Keycloak example, which uses the scopes openid, profile and email. On the Microsoft side, GitLab's Azure page says the app registration must be granted API permissions of at least openid, profile and email. It also says that Entra custom signing keys from SAML claims mapping need special OpenID provider settings, so confirm those exact settings with GitLab before you commit to custom signing keys.
Tenant location and upgrade cadence are two decisions that are hard to reverse or easy to overlook. Microsoft's data residency page says an Entra ID tenant's data location is mapped from the country or region chosen at tenant creation and cannot be changed afterward, and that Entra multifactor authentication data is stored in North America and/or the tenant's geo-location. If residency rules constrain where MFA data sits, record the location choice before the tenant is created. On the Keycloak side, the project has planned four minor releases a year since Keycloak 26.0, with a major release every two to three years, and says breaking changes in a minor release will be opt-in. The current release is 26.8.1, published October 13, 2026. Opt-in changes lower the risk of a surprise, but each minor upgrade still needs a staging run with a GitLab sign-in test, a documented rollback path, and a named owner.
Several points are not documented in the GitLab and Microsoft pages this comparison relies on, so do not assume them: self-managed SCIM provisioning, Keycloak SAML for GitLab, deprovisioning on either side when a user leaves, and the Entra ID edition that GitLab sign-in requires. Ask GitLab in writing whether SCIM is available for your self-managed instance and on which tier, whether SAML works with Keycloak, what happens to accounts and group memberships when a user is removed upstream, and which tier your OpenID setup needs. Ask Microsoft which Entra ID edition covers the sign-in features you plan to use, including custom signing keys. Ask Keycloak to confirm, for the exact version you deploy, which protocol and SCIM features are supported and how its SCIM API handles removed users. Keep the answers in writing, dated, and attached to the agreed scope before the build starts.
What GitLab SSO setup takes and what to ask before hiring help
How much effort does GitLab SSO take with Entra ID or Keycloak?
Effort depends mostly on the access you can get and the infrastructure you already run. For Microsoft Entra ID, the main work is in the tenant: someone with rights to register the application must grant the API permissions GitLab expects, at least openid, profile and email, and configure the provider so GitLab receives the claims it needs. For Keycloak, the work is in your environment: a client, HTTPS on the Keycloak endpoint, token signing with public key algorithms, a production relational database and, on Kubernetes, the Keycloak Operator installed through Operator Lifecycle Manager or kubectl. Both routes need a GitLab administrator to add the provider. Group claim testing is the step most likely to need repeated passes, because group membership rules decide who gets which access.
Can our team set up GitLab SSO without outside help?
Often yes, if one team already administers both GitLab and the identity provider, but the skills differ by route. Entra setup needs someone with rights in the Entra tenant to register the application and grant permissions, plus a GitLab administrator to enter the provider settings. Keycloak setup asks more of your platform team: a production server behind HTTPS, a supported database, backups, upgrades and the Operator if you run Kubernetes. A team without those skills can keep the GitLab side in-house and hire help for the identity server, or hire one partner for the whole path. Either way, name the owner of the tenant, the GitLab instance and the Keycloak server before work starts, so no step waits on an approval nobody owns.
How long does GitLab SSO setup take with Entra or Keycloak?
No duration is published for this work, so the written scope sets the timeline for your environment. The factors that move it are the availability of a tenant administrator and a GitLab administrator, whether a production Keycloak already exists, certificate and HTTPS readiness, database and Operator work if Keycloak is new, and the number of group mappings to test. Ask the provider to break the scope into milestones, with the person who must act at each one and the test evidence that closes it. Confirm any Microsoft tenant or subscription dependency with Microsoft before a date is set.
What does GitLab SSO with Entra or Keycloak cost to run?
Cost has three parts: the identity platform, the software and the implementation help. Microsoft lists Entra ID P1 from $7.00 per user per month and P2 from $10.00 per user per month with annual commitment, and Entra ID Free is included with Microsoft cloud subscriptions such as Azure and Microsoft 365, according to the Microsoft Entra pricing page. Keycloak is licensed under Apache-2.0, so there is no license fee for the software itself, but you pay for servers, a production database, storage, monitoring and staff time for upgrades. DeployOpen does not publish a price list. A quote follows from the written scope, and most engagements are fixed-scope, so ask for one-time work (design, setup, testing, handover) to be separated from recurring items such as a support or upgrade retainer.
Does Microsoft Entra ID need a paid tier for GitLab?
Confirm with Microsoft whether your GitLab sign-in needs a paid Entra tier, because the answer depends on your tenant and the features in your scope. On the GitLab side, the sign-in pages list OpenID Connect and SAML SSO for self-managed instances in the Free, Premium and Ultimate tiers. Group-based features are the exception: OIDC group membership requirements and SAML SSO for GitLab.com groups are Premium and Ultimate. On the Microsoft side, Entra ID Free includes multifactor authentication and SSO to SaaS apps, while P1 and P2 are paid per user. Check your GitLab tier and your Entra license against the group and access rules in your scope before you buy.
What should we ask for in a quote for GitLab SSO help?
Ask for a written scope that names every deliverable, owner and test, then compare quotes against that scope. Include at least these points:
- The GitLab edition and tier you run, and whether SAML, OpenID Connect or both are in scope.
- The identity provider version and environment, for example Keycloak 26.8.1 or the version you will run on a tested target.
- Who does each step: tenant admin work, GitLab admin work and identity server work, with named owners on your side.
- Infrastructure work: HTTPS certificates, the production database (Keycloak supports PostgreSQL 14 to 18, among others), backups and the Operator or server deployment.
- Testing: login tests, group claim tests and a rollback plan.
- What is one-time and what recurs, such as upgrades, patches and retainer support, plus the handover documents you receive.
How DeployOpen sets up GitLab SSO without favoring either provider
DeployOpen treats Microsoft Entra ID and Keycloak as two possible identity providers for your GitLab instance and scopes both against the same written requirements. Keycloak runs inside your infrastructure, so DeployOpen builds and hardens it there, while Entra ID is a Microsoft service that DeployOpen configures against your tenant. The choice should follow your identity estate, data location and GitLab tier.
How we scope
- The written scope names your GitLab tier, since SAML and group features vary between Free, Premium and Ultimate.
- The scope records the protocol for GitLab, OpenID Connect or SAML 2.0, and who holds admin rights in each provider.
- Engagements are fixed-scope, so deliverables, test scope and handover items are agreed in writing before work starts.
How we build
- For Keycloak, the build serves HTTPS only and signs tokens with public key algorithms, as GitLab's OIDC page requires.
- For Entra ID, the build sets at least the openid, profile and email API permissions that GitLab's page requires.
- Where custom signing keys come from SAML claims mapping, the special OpenID provider settings are configured and tested.
How we hand over
- Handover includes the GitLab configuration, the OmniAuth or SAML settings, and a record of each provider setting changed.
- Documentation covers the Keycloak realm and client settings, plus the Entra app registration details your administrators need.
- For Keycloak, the handover covers the database you run, since Keycloak needs a relational database in production.
How we support
- Ongoing support and upgrades are available as a retainer, covering upgrades and support after go-live.
- Confirm with GitLab which tier and sign-in method your license covers before the scope is signed.
- Retain test evidence for sign-in, group mapping and deprovisioning, so your compliance team can review the setup later.

