authentik vs Authelia for GitLab SSO

Pick authentik if GitLab needs SAML or SCIM provisioning on a plan that supports them. Pick Authelia if OpenID Connect sign-in behind a reverse proxy you already run is enough and you accept a community-supported guide tested on older versions.

On this page

authentik vs Authelia for GitLab SSO: which one fits your GitLab?

A team that has GitLab on its list of apps to put behind one login should settle the provider before the first sign-in test, because the choice decides which protocol GitLab uses and whether accounts can be provisioned automatically. Start with one question: do you need SAML or SCIM provisioning? If you do, check your GitLab tier before designing anything. GitLab's SAML SSO page for self-managed instances lists SAML in the Free, Premium and Ultimate tiers, but authentik's guide says SCIM for self-managed instances requires Premium or Ultimate plus SAML single sign-on. Confirm your current tier with GitLab, because the plan you hold determines what you can enable.

authentik fits when you need SAML or SCIM provisioning and your GitLab plan supports them. authentik's GitLab guide covers both SAML and OpenID Connect, but you choose one method, so decide that before you configure anything. Provisioning is narrower than the sign-in setup suggests: the guide says GitLab SCIM supports user provisioning but not group provisioning, so plan how group membership will be managed in GitLab. Also plan for a redirect risk. Enabling omniauth_auto_sign_in_with_provider sends every sign-in to authentik, and the guide notes that users can still reach GitLab's own login at /users/sign_in?auto_sign_in=false. Decide who may use that path and document it for your auditors. Finally, authentik 2026.5 changed SAML issuer and OAuth redirect URI types, so confirm which steps apply to your authentik version.

Authelia fits when OpenID Connect sign-in is enough and you already run a reverse proxy over HTTPS in front of GitLab. Authelia works as a companion to that proxy, and its GitLab guide is community-supported, tested with Authelia v4.38.0 and GitLab CE v16.9.0. The current Authelia release is v4.39.28, released on September 17, 2026, so the tested versions are older than what you would deploy today. Authelia's guide also warns that community guides are not guaranteed to be complete, accurate or up to date, and that tested versions matter. Accepting that means testing your exact GitLab and Authelia versions in a staging instance and keeping your own runbook. This guide covers OpenID Connect only, so confirm any provisioning need separately. The general product comparison lives on the separate authentik vs Authelia page and is not repeated here.

How authentik and Authelia compare for GitLab SSO

This table compares how authentik and Authelia sign users into GitLab, which GitLab tiers and provisioning features each path depends on, and how well each integration is documented. Read the Authelia column with its community-guide caveat in mind, and confirm any cell that says not documented with the vendor before you commit. The main takeaway: authentik publishes a GitLab guide covering SAML and OpenID Connect, with user provisioning documented, while Authelia's documented path is OpenID Connect through a community-supported guide.

ItemauthentikAuthelia
GitLab sign-in protocolsSAML or OpenID Connect, chosen as one method per setup.OpenID Connect, through a community-supported guide. SAML is not documented for GitLab, so confirm with Authelia.
Documentation for GitLabIntegration guide listed with authentik as support level. Covers SAML and OpenID Connect.Community-supported OpenID Connect guide. Authelia says community guides may not be complete, accurate or up to date.
GitLab plan for SAML and SCIMSAML SSO on Self-Managed is listed for Free, Premium and Ultimate. SCIM needs Premium or Ultimate plus SAML SSO.GitLab lists OpenID Connect for Self-Managed in Free, Premium and Ultimate. SAML and SCIM are not documented for Authelia; confirm with Authelia.
User provisioningSupported through GitLab SCIM, which needs the Premium or Ultimate plan with SAML SSO.Not documented for GitLab. Confirm with Authelia how accounts are created and removed before rollout.
Group provisioningNot available through GitLab SCIM, which covers users only. Plan group membership separately.Not documented. Confirm how group membership reaches GitLab before you commit to a design.
HTTPS requirementGitLab's OpenID Connect docs require the OpenID provider to use HTTPS. Serve authentik over HTTPS for OIDC sign-in.Authelia only works for websites served over HTTPS because session cookies require it. Plain HTTP is not supported.
Auto sign-in behaviorEnabling omniauth_auto_sign_in_with_provider sends every sign-in to authentik. Users can reach GitLab's own login at /users/sign_in?auto_sign_in=false.Not documented in the community guide. Test the GitLab login flow in a lab and confirm the fallback login path with Authelia.
Tested versionsSteps differ for 2026.5 and later, after SAML issuer and OAuth redirect URI types changed. Current release: 2026.8.4.Community guide tested with Authelia v4.38.0 and GitLab CE v16.9.0. Current Authelia release: v4.39.28.

What GitLab requires for SAML, OpenID Connect and SCIM by plan

Start with the GitLab plan, because it decides which sign-in and provisioning options are available before you choose an identity provider. GitLab's SAML SSO documentation lists SAML SSO for GitLab Self-Managed in the Free, Premium and Ultimate tiers, and lists OpenID Connect sign-in for GitLab Self-Managed in the same three tiers. For GitLab.com groups, SAML SSO sits in Premium and Ultimate, and GitLab describes SCIM provisioning for GitLab.com groups. Ultimate is the top paid tier as GitLab names it. Because a Free self-managed instance can use either SAML or OpenID Connect, the plan question matters most when you need SCIM. Confirm the tier your instance or group holds today, since the admin settings you see follow that tier.

authentik's GitLab guide supports both SAML and OpenID Connect, and you choose one method for the instance. Its guidance on SCIM for self-managed instances says GitLab SCIM requires Premium or Ultimate plus SAML single sign-on, and that GitLab SCIM covers user provisioning only. In that setup, SCIM provisions users but not groups, so group membership and any group-based permissions must be handled another way, and you should decide that before go-live. If your instance is on Free, the SCIM path described in that guide is unavailable, so plan for sign-in alone and manage provisioning separately. Map which projects and groups depend on provisioned group membership, since that work stays with your team under this setup. The authentik GitLab integration guide is the next read for the exact SCIM steps.

Which plan your organization must hold is set by its GitLab contract, so treat this section as a list of questions for your GitLab account team. Ask them in writing which tier covers SAML, OpenID Connect and SCIM for your deployment type (self-managed or GitLab.com groups), whether a trial or renewal changes that, and what the contract says about the group-level features you need. Then decide whether the missing group provisioning in SCIM is acceptable for your access model. That decision will shape the identity provider choice more than the protocol choice will.

Setting up GitLab SSO with authentik and Authelia

authentik's GitLab guide supports both SAML and OpenID Connect, and you choose one method for the GitLab instance. Choose SAML if your directory team already runs SAML for other applications, or OpenID Connect if you want the OAuth2 provider model used for your other integrations. The guide lists its support level as authentik, so check that your running version matches the steps you follow.

  • One method only: Configure either the SAML provider or the OAuth2/OpenID Connect provider for GitLab, and record which one you chose so later changes stay on the same path.
  • Version-dependent steps: authentik 2026.5 changed SAML issuer and OAuth redirect URI types, so the guide gives different steps for older versions. Confirm your version before you copy any field values.
  • Optional SCIM backchannel: A SCIM provider can push users to an application as a backchannel. For self-managed GitLab, authentik's guide says SCIM requires GitLab Premium or Ultimate plus SAML single sign-on, supports user provisioning, and does not support group provisioning.
  • Auto sign-in warning: Enabling omniauth_auto_sign_in_with_provider sends every sign-in to authentik. GitLab's own login remains reachable at /users/sign_in?auto_sign_in=false, so test that path before you turn the setting on.

Before you start, confirm the authentik version, the GitLab tier and whether you need SCIM, because those choices change the steps.

How a GitLab sign-in moves between the browser, GitLab and the provider

This illustrative OpenID Connect flow starts when a user opens GitLab and GitLab redirects the browser to the identity provider, either authentik or Authelia. The provider shows its own login, then sends the browser back to GitLab with an authorization code. GitLab exchanges that code directly with the provider over a back channel, then creates or matches the user session. With omniauth_auto_sign_in_with_provider enabled, the browser goes straight to the provider, so confirm that users can still reach GitLab's own login at /users/sign_in?auto_sign_in=false. The SAML flow follows a different message sequence.

Illustrative OpenID Connect sign-in between the browser, GitLab and the provider.

Users, groups and deprovisioning with authentik and Authelia

Account lifecycle is where the two setups differ most in practice. authentik documents a SCIM path into GitLab for users, while group handling, role assignment and offboarding depend on your GitLab tier and on settings you should verify in your own tenant. Treat each card as a check to run before go-live.

authentik user provisioning to GitLab

authentik's GitLab guide supports SAML or OpenID Connect for sign-in, and you choose one. For self-managed GitLab, its SCIM guidance requires GitLab Premium or Ultimate plus SAML single sign-on, so an OIDC-only setup cannot use that path. The guide covers user provisioning only, so group membership and access levels need a separate design. Confirm sync behavior in your own authentik release before you rely on it.

authentik GitLab guide

GitLab.com group SCIM

GitLab.com provisioning runs through group-level SAML SSO and SCIM, and GitLab documents it separately from self-managed instances. SAML SSO for GitLab.com groups is listed for Premium and Ultimate, and the self-managed limits quoted in authentik's guide should not be assumed to carry over. Check GitLab's group SAML page for the attributes and group behavior it supports, and confirm with GitLab what your plan includes. If you run a group and a self-managed instance together, treat them as two separate configurations.

GitLab group SAML docs

Authelia account creation and groups

Authelia's GitLab material is a community OpenID Connect guide, tested with Authelia v4.38.0 and GitLab CE v16.9.0, and Authelia notes that community guides may be incomplete or out of date. It is a sign-in pattern, not a provisioning design. Whether GitLab creates accounts on first sign-in, and how group membership reaches GitLab, are questions to confirm before you assume either. Confirm account creation on first sign-in on a test instance at your planned versions, and check whether the token carries group claims.

Authelia GitLab guide

Deprovisioning and offboarding

Removing a person upstream does not tell you what happens to their GitLab account, so test removal for each provider. With authentik, the SCIM user path is the documented route for pushing user changes, so confirm that a deactivated user is deactivated in GitLab and that existing sessions and tokens end. Also check whether GitLab's own login stays reachable at the sign-in path with auto sign-in disabled, since authentik warns about that route when automatic redirect is on. Run a removal test end to end and record the result with a named owner.

Role mapping to access levels

GitLab access levels such as Developer or Maintainer are assigned per user or through group membership, and each identity provider signals them differently. authentik's guide documents no group provisioning, so decide whether roles come from claims, attributes or manual assignment in GitLab. For Authelia, confirm whether the OpenID Connect token carries group or role claims and whether GitLab maps them to access levels at your tested version. Confirm the mapping per provider on a test tenant, and record who approves each access level change.

Documented limits to check before you commit

Start with the authentik limits that change the rollout itself. authentik's GitLab guide warns that enabling GitLab's omniauth_auto_sign_in_with_provider setting redirects every sign-in to authentik. Users can still reach GitLab's own login at /users/sign_in?auto_sign_in=false, so decide who may use that path, test it, and record it for your access reviews. SCIM is narrower than many teams expect: for self-managed GitLab, authentik says SCIM requires GitLab Premium or Ultimate plus SAML single sign-on. GitLab SCIM provisions users but does not provision groups, so confirm how group membership will be maintained. The guide also gives different steps for authentik 2026.5, which changed SAML issuer and OAuth redirect URI types, so confirm you follow the steps that match your version.

Authelia's documented path is thinner, and the gap sits in the guide itself. Its OpenID Connect guide for GitLab is community supported, and Authelia states that community guides are not guaranteed to be complete, accurate or up to date, and that the tested versions matter. The guide was tested with Authelia v4.38.0 and GitLab CE v16.9.0, while the current Authelia release is v4.39.28, so rerun every step on your own versions before you rely on it. Authelia also supports only HTTPS, because its session cookies require it and the project declines plain HTTP, so your GitLab and identity endpoints need valid TLS from the first day. Finally, the guide documents no SAML or SCIM path. If you need SCIM provisioning, plan that work outside the guide and confirm the approach with Authelia in writing.

Before you commit, settle two support questions. authentik's security policy lists 2026.5.x and 2026.8.x as the lines receiving security fixes, and the project announces security releases at least 24 hours in advance. Choose a deployed version on one of those lines, and make sure your change window can absorb a patch on short notice. Second, authentik's core is MIT licensed, but code under authentik/enterprise needs a paid subscription for production use. Ask authentik in writing whether the GitLab guide uses any code in that directory, and whether the subscription is required for your deployment. Record the answer in the written scope before the architecture review, because it can change your licensing cost.

Questions buyers ask before hiring help for GitLab SSO

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

The effort depends on five choices: the GitLab plan tier, the protocol, the number of users and groups, the reverse proxy and HTTPS setup for Authelia, and the versions you pin. A basic single sign-on login is a bounded task for a GitLab administrator comfortable with configuration. Provisioning adds work: authentik's GitLab guide says SCIM for self-managed instances requires GitLab Premium or Ultimate plus SAML single sign-on, and that GitLab SCIM provisions users but not groups, so confirm how group membership will be managed. With Authelia, the reverse proxy must route GitLab through the login portal over HTTPS, which Authelia requires for its session cookies. Pin versions early, because the tested versions in Authelia's community guide are Authelia v4.38.0 and GitLab CE v16.9.0, and your environment may differ.

How long does a GitLab SSO project take to finish?

No duration is supplied for this work, so the timeline comes from the written scope, which DeployOpen agrees in writing before work starts for most engagements. Ask for the timeline to be tied to named deliverables: the chosen protocol, the GitLab plan, the identity source, the test accounts and whether SCIM is included. The timeline also depends on dependencies you control, such as how quickly you can provide GitLab admin access, HTTPS certificates and a decision on plan and protocol. A single login setup from a documented guide moves faster than a project that adds provisioning, a reverse proxy build or a migration of existing users. Ask for the timeline, the assumptions behind it and your side's dependencies in the same document.

What do we need to provide for GitLab SSO?

Plan to provide GitLab administrator access, your identity source, HTTPS certificates, a written decision on plan and protocol, and test accounts before work starts.

  • GitLab administrator access to change sign-in settings and any omniauth configuration on the instance.
  • The identity source behind authentik or Authelia, with the user attributes GitLab uses to match each account.
  • HTTPS certificates for GitLab, the identity provider and, with Authelia, the reverse proxy in front of the sign-in flow.
  • A decision on GitLab plan and protocol, SAML or OpenID Connect, recorded in the scope.
  • Test accounts for each role and group that should sign in, so access can be checked before cutover.

Ask for these items in the written scope so each one has a named owner.

Can our GitLab admin set up SSO without outside help?

A GitLab admin comfortable with configuration can usually complete a single login setup from the documented guide, while SCIM and plan decisions deserve a second review. authentik's GitLab guide covers SAML and OpenID Connect, and you choose one method. One setting needs care: enabling omniauth_auto_sign_in_with_provider redirects every sign-in to authentik, and authentik notes that users can still reach GitLab's own login at /users/sign_in?auto_sign_in=false. Test that path and decide who keeps access to it for emergencies. Authelia's GitLab guide is community-supported, and Authelia states that such guides are not guaranteed to be complete, accurate or up to date, so verify each step against the tested versions before using it in production.

What does authentik Enterprise cost for GitLab SSO?

The authentik core is MIT licensed, so the open source edition has no license fee, but the Enterprise edition is a paid product. The authentik pricing page lists Enterprise at $5 per user per month billed annually plus $0.02 per external user per month. Code in the authentik/enterprise directory needs a paid subscription for production use, so confirm with authentik whether your deployment depends on that code and whether the listed rate applies to your mix of internal and external users. GitLab subscriptions are paid to GitLab and are separate from authentik, and the SCIM path needs GitLab Premium or Ultimate. DeployOpen does not publish prices. A quote follows the written scope, so ask it to separate one-time setup from any recurring retainer and to name what you pay each vendor directly.

What does Authelia cost to run for GitLab SSO?

Authelia is Apache-2.0 licensed, so the software itself carries no license fee. The recurring costs are the infrastructure for the reverse proxy and HTTPS, the user backend you choose, and the time to patch and upgrade components when you move between versions. GitLab costs are separate: any GitLab subscription is paid to GitLab, and the SCIM path needs GitLab Premium or Ultimate. Setup effort moves with how many applications sit behind the proxy, how complex the access rules are, and whether the community guide needs adapting to your versions. For a quote, ask for one-time work listed separately from ongoing support, testing and upgrades, plus a list of the tools and certificates you must buy or already own.

What changes if you switch providers after GitLab SSO is live

The main switching cost is identity matching. GitLab links each existing account to the provider name and the external identifier it received at first sign-in, so an authentik setup (SAML or OpenID Connect, whichever you chose in the authentik GitLab guide) and an Authelia OpenID Connect setup may not send the same value for the same person. Before any cutover, capture the identifier each provider sends for a test user and confirm it matches the existing GitLab identity record. Sign-in settings also change with the provider. If omniauth_auto_sign_in_with_provider is enabled, every sign-in goes to the new provider, so the administrator's fallback path at /users/sign_in?auto_sign_in=false must be tested before you switch. Authelia's GitLab guide is community-supported and was tested only with Authelia v4.38.0 and GitLab CE v16.9.0, so confirm it against your own versions.

SCIM is where the switch becomes expensive. authentik documents SCIM for self-managed GitLab as requiring GitLab Premium or Ultimate plus SAML single sign-on, and GitLab SCIM provisions users but not groups, so group-based access has to be handled separately on either side. If the source system changes, existing SCIM-managed users are tied to the old source's identifiers, and you need to decide whether the new provider adopts those records or whether accounts are recreated. Deprovisioning changes too. A user disabled in the new source may not be deactivated in GitLab on the same schedule, and until the old connection is removed, both sources may disagree about who is active. Ask each vendor whether a migration path for SCIM-managed users is documented, and ask how deactivation requests are sent and what happens to the user's access and content when they arrive.

Run the switch in a staging GitLab instance before you commit to it. Use a copy of the sign-in configuration and a test group that covers an admin, a regular user and a user already provisioned by SCIM. Check that each existing account signs in through the new provider without creating a duplicate, that the auto sign-in setting and the admin login path behave as you expect, and that a SCIM deactivation removes access the way your policy requires. Confirm that your GitLab license tier still covers the SAML and SCIM features you use. Record the GitLab, authentik and Authelia versions you tested, because the vendor guides depend on them. Finally, rehearse the rollback: switching GitLab's sign-in provider back to the original source must be tested before go-live, not left as a plan on paper.

How DeployOpen sets up GitLab SSO on either provider

DeployOpen plans and implements the identity provider and the GitLab side of the connection in your own infrastructure, whether you choose authentik or Authelia. The method (SAML or OpenID Connect), the GitLab tier and the tested versions are settled in writing before work starts. Deliverables are documented so your security and identity teams can review the configuration.

How we scope

  • The written scope names the GitLab deployment type, such as Self-Managed or GitLab.com groups, and its tier.
  • The scope records whether you use SAML or OpenID Connect, since authentik's guide offers both and you pick one.
  • For Authelia, the scope states the tested GitLab and Authelia versions, because the guide says tested versions matter.

How we build

  • We configure the GitLab application in the identity provider and the matching GitLab settings, then test sign-in.
  • Where SCIM is in scope, we confirm the GitLab tier and SAML prerequisite, since SCIM provisions users only.
  • For authentik, we test the auto sign-in redirect before enabling it, since it sends every sign-in to authentik.

How we hand over

  • A configuration record listing each GitLab setting, identity provider application, redirect URI and the tested versions.
  • Version notes covering the authentik 2026.5 change to SAML issuer and OAuth redirect URI types, for older and newer installs.
  • Documented test results and a runbook covering the login flow, admin access and GitLab's own sign-in path for recovery.

How we support

  • Ongoing support, upgrades and testing are available as a retainer, after the fixed-scope handover.
  • Upgrades of authentik, Authelia or GitLab are scoped separately, because each one can change the setup.
  • Quotes follow from the written scope, so changes to the GitLab tier or provider are quoted as scope changes.

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.