Keycloak vs Authelia for GitLab SSO

Keycloak has documented GitLab OIDC and SAML paths and a SCIM API. Authelia's GitLab OIDC guide is community-supported and was tested on earlier versions. Choose by the GitLab documentation, provisioning and identity features your team needs.

On this page

Keycloak vs Authelia for GitLab SSO: which fits your team

Keycloak fits when GitLab must sign in through a documented SAML or OIDC path, when your users come from LDAP or Active Directory, or when you need a SCIM API to provision users. Authelia fits when your team already runs it as a reverse-proxy companion and accepts a community-supported GitLab OIDC guide tested on Authelia v4.38.0 and GitLab CE v16.9.0, with both versions pinned. The Keycloak OIDC path has two conditions that GitLab's documentation sets: GitLab only talks to a Keycloak server that uses HTTPS, and Keycloak must sign tokens with public key algorithms. Keycloak's SCIM API provisions users into Keycloak itself, so confirm with GitLab whether your edition and tier receive that provisioning in GitLab before you design around it.

Authelia suits a team that already operates it, because it works as a companion to a reverse proxy: the proxy asks Authelia whether each request is allowed, and unauthenticated users are redirected to its login portal. That model only works if GitLab sits behind the same proxy and every hostname is served over HTTPS, since Authelia's session cookies require it and the project declines to support plain HTTP. Its community GitLab OpenID Connect guide states that community guides are not guaranteed to be complete, accurate or up to date, and that the tested versions matter. The current Authelia release is v4.39.28, so treat the v4.38.0 and v16.9.0 pairing as a starting point and retest it on the versions you run.

Run three checks before you choose. First, confirm where your people's identities live: if they sit in LDAP or Active Directory and the identity provider must read them, Keycloak's user federation is the documented route, and you should confirm which user backends Authelia supports in your setup. Second, confirm your GitLab edition and tier, because OIDC sign-in is listed for Free, Premium and Ultimate on self-managed instances, while OIDC group membership requires Premium or Ultimate. Third, if a documented SAML path is a requirement, read GitLab's SAML SSO for self-managed page before you commit. The general comparison of the two platforms lives on the Keycloak vs Authelia page and is not repeated here.

How Keycloak and Authelia compare for GitLab SSO

This table compares how Keycloak and Authelia would sign users into GitLab, using the protocol path, GitLab tier rules and token requirements that GitLab documents. Read each cell as a documented fact, and confirm anything marked to confirm with the vendor or GitLab docs before you commit. The main takeaway is that GitLab's own OpenID Connect docs include a Keycloak section, while Authelia's GitLab guide is community-supported and was tested on older versions.

AspectKeycloakAuthelia
License and current releaseApache-2.0. Current release is 26.8.1, published October 13, 2026.Apache-2.0. Current release is v4.39.28, published September 17, 2026.
Documented GitLab protocol pathGitLab's OpenID Connect docs include a Keycloak section with an omniauth_providers example. Confirm the SAML setup against GitLab's SAML page if you prefer SAML.A community-supported OpenID Connect 1.0 client guide exists for GitLab. Confirm the current steps with Authelia and GitLab before you rely on them.
GitLab tier for sign-in and group membershipOIDC sign-in is in Free, Premium and Ultimate for Self-Managed. OIDC group membership needs Premium or Ultimate.The same GitLab tier rules apply to either provider. Confirm your edition with GitLab before you plan group membership.
HTTPS and token signing requirementsGitLab requires an HTTPS endpoint, and Keycloak must sign tokens with public key algorithms. Confirm the signing algorithm in your realm settings.Authelia works only over HTTPS because its session cookies require it. Confirm the token signing settings in the GitLab guide for your version.
User sourceKeycloak has its own user store, can federate users from LDAP or Active Directory, and can broker logins to external OIDC or SAML providers.Confirm the supported user backends in Authelia's documentation before you assume an external directory will work.
ProvisioningKeycloak's SCIM API lets external systems provision users, and it is listed as supported in the 26.8 release notes. Confirm whether GitLab-side SCIM applies to your Self-Managed instance.No provisioning path is covered here. Confirm with Authelia how user and group changes would reach GitLab.
Documentation status for GitLabGitLab's OpenID Connect docs include a Keycloak section with an example block. Confirm the steps match your GitLab version before you start.A community-supported guide tested with Authelia v4.38.0 and GitLab CE v16.9.0. Current Authelia is v4.39.28, so test the steps on your own versions.

Which GitLab plan does OIDC or SAML sign-in require?

On a self-managed GitLab instance, OpenID Connect sign-in is listed for the Free, Premium and Ultimate tiers, and SAML SSO for self-managed instances is listed for the same three tiers, according to GitLab's documentation as of December 2026. Basic sign-in through Keycloak therefore does not, on its own, require a paid plan. Group membership is different. OIDC group membership is listed for Premium and Ultimate only, so if you want groups from the identity provider to decide GitLab group membership, you need Premium or Ultimate. Authelia needs a separate check. Its OpenID Connect guide for GitLab is community-supported, was tested with Authelia v4.38.0 and GitLab CE v16.9.0, and states that it may not be complete or current. GitLab's tier listing does not validate that setup, so test the exact versions you plan to run. Start with the GitLab OpenID Connect documentation.

If your GitLab runs as GitLab.com, the tier question moves to groups. SAML SSO for GitLab.com groups is listed for Premium and Ultimate, and GitLab's documentation describes SCIM provisioning for GitLab.com groups in the same two tiers. A group on the Free tier therefore has no documented path to either feature in this comparison. Keycloak's SAML 2.0 support and its SCIM API, which the 26.8 release notes list as supported, sit on the identity provider side. The SCIM API lets an external system create users in Keycloak. It does not change which GitLab tier you need, so confirm the GitLab side separately. Before you assume a provisioning connector exists between Keycloak and GitLab, check which direction the SCIM path runs, whether your GitLab version supports it, and which tier it requires. For the group-level SAML setup, read the GitLab SAML SSO for GitLab.com groups documentation.

Two gaps remain, and both are yours to close. First, the supplied facts do not cover SCIM provisioning for GitLab Self-Managed instances, so do not assume it is available on your tier. Check the current GitLab documentation for SCIM on self-managed instances, confirm the tier it needs, and record the answer in your design file. Second, these tier listings are as of December 2026. GitLab changes plan structure and feature placement, so recheck each listing on the day you buy, and ask your GitLab account contact or reseller to confirm the required tier in writing. Before a Keycloak or Authelia pilot, write down your plan, your deployment type (self-managed or GitLab.com) and the features you depend on, then test sign-in and group mapping on the exact GitLab version you will run in production.

How a GitLab sign-in travels to Keycloak or Authelia

The diagram starts when a user selects OpenID Connect sign-in on GitLab. GitLab redirects the browser to Keycloak or Authelia, where the user signs in. The provider returns an authorization code through the browser, and GitLab then exchanges that code for tokens in a back-channel HTTPS request. The ID token must be signed with a public key algorithm, which GitLab requires for Keycloak. Confirm that the provider's endpoints are reachable over HTTPS from both the browser and the GitLab server, because GitLab makes the token call itself. This is the OpenID Connect pattern GitLab documents. Authelia's GitLab setup is a community guide, so check its tested versions before you build on it.

The browser carries the redirects, while GitLab and the provider exchange tokens directly over HTTPS.

Setup outline for Keycloak and Authelia with GitLab

GitLab's documentation includes a Configure Keycloak section for its OpenID Connect integration, and this tab follows that route. You create a Keycloak client for GitLab, then add an omniauth_providers block to the GitLab Self-Managed configuration. The example block uses the label Keycloak and requests the openid, profile and email scopes. Confirm the GitLab requirements for Keycloak before you start, because a mismatch usually shows up later as a failed sign-in.

  • Scopes: The example block requests the openid, profile and email scopes. Make sure the Keycloak client returns those attributes to GitLab, then test sign-in with an ordinary user account, not only an administrator.
  • HTTPS on both sides: GitLab only talks to a Keycloak server that uses HTTPS. Confirm that the GitLab host trusts the certificate chain for the Keycloak hostname, not only that a browser does.
  • Public key token signing: GitLab requires Keycloak to sign tokens with public key algorithms. Check the signing setting on the client before you run the first test.
  • Tier limits: OpenID Connect sign-in is listed for GitLab Self-Managed in the Free, Premium and Ultimate tiers, while OIDC group membership requirements need Premium or Ultimate. Confirm your license tier before you plan group-based access. GitLab OpenID Connect documentation
  • SAML alternative: The Keycloak Server Administration Guide documents SAML 2.0 clients, and GitLab's SAML SSO page for self-managed instances covers the GitLab side. Pick one route for each instance and record the choice in your configuration notes.

Before you change production, confirm the redirect URI, the certificate chain and the signing algorithm in a staging instance.

Users, groups and deprovisioning with each provider

Keycloak and Authelia keep identities in very different places, and GitLab only sees what each one sends at sign-in. The cards below cover where users live, how group claims reach GitLab, which provisioning APIs exist, and how removed users are handled. Confirm each point in a test environment before you commit to a design.

Keycloak users and federation

Keycloak can read users from LDAP or Active Directory and broker logins to an external OpenID Connect or SAML provider, so passwords can stay in the system you already run. For GitLab, the design question is which store is authoritative for each person. GitLab creates the account at first sign-in, but confirm that with a test login, including how usernames and email addresses match when a user already exists in GitLab. Decide the source of truth before rollout, because changing it later can affect every linked identity.

Keycloak admin guide

Keycloak group claims

Keycloak can send group membership in the OpenID Connect token, and GitLab can use those groups for access decisions. On GitLab Self-Managed, OIDC group membership is a Premium and Ultimate feature, so a Free instance can sign users in but cannot use this route for group access. The claim name, the group format and any mapper settings in Keycloak must match what GitLab reads in your setup. Test one user from each group, and confirm the tier for your subscription before you promise group-based access to the business.

GitLab OIDC docs

Keycloak SCIM API

Keycloak's SCIM API lets external systems provision users into Keycloak, and the 26.8 release notes list it as supported. Use it to feed Keycloak from an HR system or another identity source. The API points into Keycloak, so do not assume it creates or removes accounts in GitLab. Ask for a demonstration of any GitLab-side SCIM path in your own edition and version before you design joiner and leaver steps around it.

Authelia users

Authelia gets its users from a configured user backend. The options to confirm for your version are file or LDAP users. Check how each backend stores group attributes, because those attributes are what you would pass to GitLab through the OpenID Connect claims. Authelia's GitLab guide is community-supported, was tested with Authelia v4.38.0 and GitLab CE v16.9.0, and carries no guarantee that it is complete, accurate or current. Use it as a starting point and retest every version you run.

Authelia GitLab guide

Deprovisioning removed users

Deprovisioning is the open item in this comparison. The documentation for this pairing does not say how GitLab handles a user who is disabled or removed at the identity source, including whether an existing session or group membership ends at once or at the next sign-in. Run a test: disable a test user at the source directory, then check the GitLab account, active sessions and group access. Confirm with a test before you rely on it, and repeat the check after each upgrade of GitLab or your identity provider.

Which GitLab integration limits are documented, and which are not

Start with the limits that GitLab and both platforms write down, because they shape the architecture before any feature comparison matters. GitLab's OpenID Connect documentation says GitLab can only talk to a Keycloak server that uses HTTPS, and that Keycloak must sign tokens with public key algorithms. Check the signing algorithm on the Keycloak client for GitLab before you copy the omniauth_providers block from the GitLab guide, because a symmetric setting falls outside the documented requirement. On the Authelia side, the architecture documentation says Authelia only works for websites served over HTTPS because its session cookies require it, and the project declines to support plain HTTP. Either way, the GitLab hostname needs a valid TLS certificate before the redirect flow can be tested.

The Authelia side carries a different kind of risk: its OpenID Connect 1.0 client guide for GitLab is community-supported. The guide says community guides are not guaranteed to be complete, accurate or up to date, and that the tested versions matter. That guide was tested with Authelia v4.38.0 and GitLab CE v16.9.0, while the current Authelia release is v4.39.28, released on September 17, 2026. Before you rely on it, run the full sign-in, logout and group path on the exact Authelia and GitLab versions you plan to deploy, and keep those results with the written scope. Keycloak's policy differs: since Keycloak 26.0, breaking changes in minor releases are opt-in (Keycloak blog, October 2024), so a routine minor upgrade is less likely to change your GitLab client without a decision. Still read each release's notes before you move past the version you tested.

Several gaps are not documented well enough to plan around, so confirm each one with the vendor or in a test environment before you commit. Keycloak's Server Administration Guide describes a SCIM API that lets external systems provision users into Keycloak, and the 26.8 release notes list it as supported, but nothing shows that GitLab consumes it. GitLab's documented SCIM provisioning applies to GitLab.com groups, so ask GitLab whether and how it applies to your Self-Managed instance. Do not assume Authelia offers SCIM, group sync or deprovisioning for GitLab. Ask the Authelia project how a removed user loses GitLab access, then test it. Group-based access also needs checking, because GitLab lists OIDC group membership requirements under Premium and Ultimate. Put the answers into the written scope before it is agreed.

Checks to run before GitLab sign-in goes live

These six checks run in order before any user signs in to GitLab through the identity provider. Together they confirm the GitLab tier and provisioning scope, HTTPS on both endpoints, a tested version pair, the token signing setting, the effect of a user removal, and an administrator recovery path. Each step closes with a written record that security and GitLab administrators can review.

  1. Confirm the GitLab tier and provisioning needs

    The GitLab administrator confirms the tier first. OpenID Connect sign-in for GitLab Self-Managed is listed in the Free, Premium and Ultimate tiers, while OIDC group membership requirements are listed for Premium and Ultimate. GitLab's documentation describes SCIM provisioning for GitLab.com groups, so confirm whether a Self-Managed instance can use it. Keycloak's SCIM API provisions users into Keycloak, which is a separate direction. Done when a written note names the tier, the sign-in protocol and whether group membership or SCIM is in scope, and each point is checked against the GitLab documentation for your version.

  2. Confirm HTTPS on both endpoints

    The platform owner checks that the identity provider and GitLab both serve over HTTPS with certificates that browsers and the GitLab server trust. GitLab only talks to a Keycloak server over HTTPS, and Authelia only works for sites served over HTTPS because its session cookies require it. Run the discovery and callback checks from the GitLab host itself, since certificate trust often differs there from a laptop. Done when both hostnames load over HTTPS from the GitLab host and the team has recorded the certificate authority and the exact redirect URI registered in the identity provider.

  3. Pin and test the version pair

    Choose the identity provider release and the GitLab release together, then build a non-production GitLab instance on the same identity provider version you plan to run. Keycloak 26.8.1 is the current release, published October 13, 2026, and since Keycloak 26.0 its minor releases are planned four times a year with breaking changes made opt-in. For Authelia, the community OpenID Connect guide was tested with v4.38.0 and GitLab CE v16.9.0, and Authelia says community guides may not be complete, accurate or up to date, so use those versions as a starting point for your own test. Done when a test user signs in on the pinned pair and the team has recorded both version numbers and the test date.

  4. Test token signing with a public key algorithm

    The identity administrator sets the signing algorithm for the GitLab client to a public key algorithm, which GitLab's OpenID Connect documentation requires for Keycloak. Compare the omniauth_providers block with the example in GitLab's Keycloak section, including the openid, profile and email scopes. For Authelia, confirm the equivalent setting in its own guide. The tester then signs in and inspects the alg value in the ID token header. Done when the recorded algorithm matches the configuration, GitLab accepts the token, and the configuration export is stored with the test record.

  5. Test a user removal and record the result

    The identity administrator disables a test account in the identity provider, and the GitLab administrator then checks what GitLab does with that user. Record whether the user can still sign in, whether an existing session stays active, and what happens to the account's content, tokens and SSH keys. Repeat the test with a deletion if your offboarding process uses one. Done when the team has a written record of each result and the owner has agreed in writing how removal is handled, since the outcome depends on the sign-in configuration and the version under test.

  6. Document and test the administrator recovery path

    Write down how a GitLab administrator signs in if the identity provider is down, misconfigured or its certificate has expired. Confirm which sign-in method stays available without the identity provider, where its credentials are stored and who may use them. Check whether the identity provider's own admin console depends on the same failed path. Done when a second administrator has followed the written steps on the non-production instance and signed in without the identity provider, and the record is stored where the operations team can reach it during an outage.

What buyers ask before hiring help with GitLab SSO

How much effort does GitLab SSO take with Keycloak or Authelia?

Effort depends mostly on the route you pick and on how much of GitLab's access model you need to match. A basic OpenID Connect sign-in is the smallest job, and group-based access adds work on top. Four factors drive the effort: your GitLab tier, the protocol you choose, group mapping, and HTTPS with certificates. GitLab lists OpenID Connect and SAML SSO for Self-Managed in the Free, Premium and Ultimate tiers, but OIDC group membership requirements are Premium and Ultimate, so the tier decides whether group sync is available at all. The Keycloak route adds a production database, and Keycloak supports PostgreSQL 14 to 18 among other options. The Authelia route adds version pinning, because the community guide was tested with Authelia v4.38.0 and GitLab CE v16.9.0, while Authelia v4.39.28 is the current release.

How long does a GitLab SSO setup take?

No duration is published for this work, so the timeline is set in the written scope before work starts. Ask for milestones rather than one number: confirming the GitLab tier, building the identity provider client, configuring GitLab, mapping groups, testing with test users, and handing over documentation. The biggest variables sit on your side of the project. They include how quickly you can grant GitLab and identity provider admin access, whether certificates for both hostnames are ready, and how fast group owners decide which groups map to which GitLab roles. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins. Ask the quote to show which milestones depend on your approvals so you can plan your own calendar.

What do we need to provide for GitLab SSO?

Before work starts, the buyer usually needs to provide four things:

  • Administrator access to the GitLab Self-Managed instance and to the identity provider, including the rights to create a client and read its settings.
  • HTTPS certificates for the GitLab and identity provider hostnames, because GitLab requires an HTTPS OpenID provider and Authelia only serves HTTPS.
  • A decision on which identity groups map to which GitLab access levels, and a named owner for each group.
  • Test users covering each role you need to verify, plus one person who signs off on the results.

For Keycloak, the signing configuration matters too. GitLab requires Keycloak to sign tokens with public key algorithms, so confirm that your realm settings allow it before the build starts. Agree on who holds these items in the written scope, because delays usually come from access and approvals rather than from the configuration itself.

Can our own team set up GitLab SSO without outside help?

Yes, if your team has the skills and the official documentation covers your route. The Keycloak route has the most official material: GitLab's OpenID Connect documentation includes a Configure Keycloak section with an example configuration block, and Keycloak's Server Administration Guide covers clients and protocols. An engineer comfortable with identity protocols and Linux administration can work from those sources. The Authelia route needs more care. Its GitLab guide is community supported, Authelia notes that such guides are not guaranteed to be complete, accurate or up to date, and the tested versions matter. Before your team relies on that route alone, confirm the current versions in your environment against the guide and in a test instance. Outside help tends to pay off when several teams are involved, when evidence must satisfy an auditor, or when nobody on staff has configured an OIDC client before.

What should a fixed-scope GitLab SSO quote include?

A fixed-scope quote follows from a written scope, so ask that it names each of the following:

  • The GitLab tier and whether group membership and SAML are in scope, since the tier decides which features are available.
  • The protocol for each application, the group mapping rules, and who approves them.
  • HTTPS and certificate handling for GitLab and the identity provider, and the database for Keycloak or the version pinning approach for Authelia.
  • Test cases, test users, acceptance steps, documentation and handover.
  • What is excluded, such as ongoing upgrades or other applications.

DeployOpen does not publish a price list, so the quote is built from that scope. The one-time cost is the design, configuration, testing and documentation effort. Recurring costs are separate: GitLab subscription fees, the infrastructure you run, and any retainer for upgrades, support or continuous testing. Ask which of these the quote covers and how changes to scope are priced.

Does GitLab document Authelia directly for SSO?

The Authelia-specific guidance available is a community-supported OpenID Connect guide published in Authelia's own documentation, not a page from GitLab. GitLab's OpenID Connect documentation does include a Configure Keycloak section with an example block, which makes it the stronger starting point if you want vendor documentation for the identity provider you run. Authelia's guide was tested with Authelia v4.38.0 and GitLab CE v16.9.0, and it warns that community guides may be incomplete or out of date. Confirm whether GitLab's current OpenID Connect page mentions Authelia, and do not assume it does. Then run the guide against your exact GitLab and Authelia versions in a test environment and record the version pair you verified before you move it to production.

How DeployOpen sets up GitLab SSO without favoring either provider

DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, and it applies the same method to either identity provider. For Keycloak vs Authelia for GitLab SSO, the work starts from GitLab's requirements and your environment, then tests each option against them. The result is a written record your team can review before choosing.

How we scope

  • Scope records your GitLab tier, since OIDC group membership requires Premium or Ultimate.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as retainers.

How we build

  • Keycloak is configured for HTTPS and public key token signing, which GitLab's OIDC documentation requires.
  • For Authelia, the build covers the reverse proxy, HTTPS-only sessions and the OIDC client registration in GitLab.
  • Each option is tested through the same GitLab sign-in flow, so differences in results come from the provider.

How we hand over

  • Deliverables include the configuration, the documented GitLab settings and the test evidence for each provider.
  • Authelia's GitLab guide is community-supported, so the handover records the tested versions, Authelia v4.38.0 and GitLab CE v16.9.0.
  • Your team receives documentation of the setup, including how to upgrade Keycloak or Authelia later.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Keycloak plans four minor releases a year, so the support plan should include a recurring upgrade test cycle.
  • Authelia's current release, v4.39.28, differs from the tested v4.38.0, so confirm the GitLab flow on your target version.

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.