Which identity provider fits Nextcloud SSO
Choose authentik if Nextcloud is one app in a wider estate and you need SAML, LDAP or a web admin console for the identity provider itself. Choose Authelia if OpenID Connect is enough for Nextcloud and your team already runs Authelia as a reverse proxy companion. For a new deployment of either, OpenID Connect is usually the simplest starting point: authentik's Nextcloud guide says so, and it also covers SAML and LDAP. Nextcloud handles OpenID Connect through the user_oidc app, SAML 2.0 through the user_saml app, and LDAP through its built-in LDAP and Active Directory integration, so your protocol choice also decides which Nextcloud app you install and maintain.
authentik fits when you need more than OpenID Connect from the identity provider: SAML for Nextcloud alongside other apps, LDAP for user lookups, or a console where administrators change providers, flows and group mappings without editing files. The redirect URI for Nextcloud is the Nextcloud host followed by /apps/user_oidc/code, and scope mappings can pass storage quota, groups and an admin entitlement to Nextcloud, so list the group and quota attributes your Nextcloud permissions depend on before cutover. Note that server-side per-user encryption needs LDAP, because OpenID Connect and SAML never give Nextcloud the user's cleartext password. authentik's guide says both OpenID Connect and SAML require HTTPS, and it documents /login?direct=1 as the route to Nextcloud's built-in login if SSO breaks, so test that route before go-live.
Authelia fits when OpenID Connect covers every Nextcloud need and your team already runs Authelia in front of other services, so Nextcloud sits behind the same login portal as the rest. Authelia's Nextcloud OpenID Connect guide is community-supported and was tested with the OpenID Connect Login app v3.2.2 on Nextcloud v31.0.5 and the OpenID Connect user backend app v8.0.0 on Nextcloud v31.0.8, with Authelia v4.39.9. Treat those versions as the tested baseline and confirm the app and Nextcloud versions you will run before you commit. Authelia also works only for sites served over HTTPS, because its session cookies require it, so Nextcloud must already have TLS in place. The guide covers OpenID Connect only, so if your users must sign in through SAML or LDAP, confirm that Authelia meets that need before you choose it.
Where an SSO login hands off between the browser, Nextcloud and the provider
This illustrative sequence follows one OpenID Connect login. The browser starts at Nextcloud, which redirects it to the identity provider, either authentik or Authelia. After the user authenticates, the provider returns the browser to the redirect URI. For authentik, that is the user_oidc callback path (/apps/user_oidc/code) on your Nextcloud address. Nextcloud then exchanges the returned code for tokens and opens its session. Check the redirect URI character for character, since a mismatch is a common cause of failed sign-in. If SSO fails, /login?direct=1 reaches Nextcloud's built-in login. The Authelia steps are illustrative until you confirm them against Authelia's Nextcloud guide.
Illustrative OIDC login path from browser to Nextcloud session.
What Nextcloud SSO requires: user_oidc, user_saml and LDAP
Nextcloud has three documented routes to central sign-in, and the route you choose drives the rest of this comparison. OpenID Connect runs through the user_oidc app, SAML 2.0 runs through the SSO & SAML (user_saml) app, and LDAP runs through Nextcloud's LDAP and Active Directory integration. authentik's Nextcloud guide covers all three routes and says OIDC is usually the simplest choice for a new deployment. Authelia's documented Nextcloud route is an OpenID Connect client guide that uses two apps: the OpenID Connect Login app, tested with app v3.2.2 on Nextcloud v31.0.5, and the OpenID Connect user backend app, tested with app v8.0.0 on Nextcloud v31.0.8, both with Authelia v4.39.9. Both guides are community-supported, so run each step in a staging instance before you commit to a route.
The user_oidc README documents backchannel logout and per-provider setup with the occ user_oidc:provider command, which lets you script the provider definition and repeat it across staging and production. Before go-live, test that a logout started at the identity provider reaches Nextcloud, because that depends on the backchannel path working in your environment. authentik's guide gives the redirect URI as https://<nextcloud>/apps/user_oidc/code, and the provider entry must match it exactly. The user_saml README lists SAML 2.0 among its supported and tested provider types, alongside OneLogin, Shibboleth, AD FS, Kerberos and CAS. Both OIDC and SAML require HTTPS, and user_saml is the documented path if your identity provider only speaks SAML.
The LDAP route is the one to pick when per-user encryption matters. authentik's guide says server-side encryption with per-user keys needs LDAP, because OIDC and SAML do not give Nextcloud the user's cleartext password. Decide early which route owns user creation, group membership and admin rights. authentik's guide describes scope mappings that pass storage quota, groups and an admin entitlement to Nextcloud, so confirm those attributes against your own Nextcloud version. No SCIM provisioning route for Nextcloud is documented, so plan joiner and leaver handling separately and confirm it with Nextcloud. Keep /login?direct=1 available for built-in login if SSO fails, and limit who can use it. Finally, no edition or plan requirement for Nextcloud SSO is documented here, so confirm with Nextcloud which edition you run and which user_oidc and user_saml versions match it.
authentik and Authelia side by side for Nextcloud SSO
This table compares what authentik and Authelia document for Nextcloud single sign-on, row by row, so you can see where the guides overlap and where they are silent. Treat a 'not documented' cell as a question to put to the vendor or community before you plan around it. The main takeaway: authentik's guide covers OIDC, SAML and LDAP, including per-user encryption and fallback login, while Authelia's guide covers OpenID Connect and lists tested app versions.
| Integration aspect | authentik | Authelia |
|---|---|---|
| Protocols and Nextcloud apps | OIDC via user_oidc, SAML via user_saml, and LDAP via Nextcloud's LDAP integration. The guide says OIDC is usually simplest. | OpenID Connect via the OpenID Connect Login app and OpenID Connect user backend app. |
| SAML support in the guide | Covered in the guide. Requires HTTPS and cannot be used with per-user server-side encryption. | Not documented in the supplied sources. Confirm with Authelia before planning SAML. |
| Support level and tested versions | Community support level. Tested versions in the guide: not documented in the supplied sources. | Community-supported. Login app v3.2.2 on Nextcloud v31.0.5, user backend app v8.0.0 on Nextcloud v31.0.8, Authelia v4.39.9. |
| License and paid features | MIT core. authentik/enterprise code needs a paid subscription for production use. Enterprise-only features include Entra ID and Google Workspace integrations. | Apache-2.0. Paid features: not documented in the supplied sources. |
| LDAP route for per-user server-side encryption | LDAP is needed because OIDC and SAML do not give Nextcloud the user's cleartext password. | Not documented in the supplied sources. Confirm the route with Authelia and Nextcloud before relying on it. |
| HTTPS requirement | OIDC and SAML require HTTPS for the Nextcloud integration. | Per its architecture docs, Authelia works only for sites served over HTTPS since session cookies require it. Plain HTTP is not supported. |
| SCIM and attributes passed to Nextcloud | SCIM provider is an optional backchannel to push users to an app. Scope mappings can pass storage quota, groups and an admin entitlement. | Not documented in the supplied sources for SCIM or attributes passed to Nextcloud. |
| Fallback login | /login?direct=1 reaches Nextcloud's built-in login if an OIDC or SAML problem blocks sign-in. | Not documented in the supplied sources. Ask Authelia how users reach a local Nextcloud login during an outage. |
| What the reader must confirm | Versions of user_oidc and user_saml that match your Nextcloud release, and whether you need Enterprise features. | Whether the tested community apps and versions suit your Nextcloud release, and how SAML and LDAP are handled. |
Nextcloud SSO setup steps for authentik and Authelia
authentik's Nextcloud guide covers OIDC, SAML and LDAP, and it says OIDC is usually the simplest SSO method for a new deployment. The guide's support level is listed as Community, so treat its steps as a starting point for your own review. The OIDC path uses authentik's OAuth2/OpenID Connect provider and Nextcloud's user_oidc app, and it requires HTTPS on the Nextcloud site.
- Create the provider. In authentik, create an OAuth2/OpenID Connect provider for Nextcloud and record the client ID and client secret it generates.
- Set the redirect URI. Register
https://<nextcloud>/apps/user_oidc/codeas the redirect URI, replacing the placeholder with your own Nextcloud hostname. - Map scopes for quota, groups and admin. Add scope mappings so authentik passes storage quota, group membership and an admin entitlement to Nextcloud. Test with one standard account and one admin account to confirm each value arrives.
- Enable user_oidc. Install and enable the user_oidc app, then add the provider with the client details from authentik. The app README documents per-provider setup with the
occ user_oidc:providercommand. - Keep a fallback. authentik's guide notes that
/login?direct=1reaches Nextcloud's built-in login if an OIDC problem blocks sign-in. Agree with your Nextcloud admins who uses that path and when.
Confirm that the user_oidc release you install supports your Nextcloud version, using the app README, before you copy these steps.
Use these routes when OIDC does not fit your Nextcloud deployment. SAML 2.0 is handled by the SSO & SAML (user_saml) app, and LDAP is handled through Nextcloud's LDAP and Active Directory integration. authentik's guide states that OIDC and SAML both require HTTPS, and that neither gives Nextcloud the user's cleartext password, which affects encryption choices.
- SAML with user_saml. Create authentik's SAML provider for Nextcloud, then configure the SSO & SAML app with the identity provider metadata and attribute mappings your team agrees on.
- Server-side encryption needs LDAP. authentik's guide says server-side encryption with per-user keys needs LDAP. If your policy requires per-user keys, choose the LDAP route from the start.
- LDAP through authentik. Use authentik's LDAP provider as the directory source for Nextcloud's LDAP and Active Directory integration, then test user lookup and group membership before go-live.
- Check the provider type. The user_saml README lists SAML 2.0 among its supported and tested provider types. Confirm that your identity provider setup matches a listed type before you build on it.
- HTTPS on both sides. Serve Nextcloud and authentik over HTTPS before you test either route, because the SAML and OIDC flows depend on it.
Confirm with your security and compliance team which route your data handling policy allows, since the LDAP route changes where credentials and group data move.
Authelia's documentation includes a community-supported OpenID Connect 1.0 client guide for Nextcloud. The guide names two apps, the OpenID Connect Login app and the OpenID Connect user backend app, and it records the versions it tested. Those tested versions are older than the current Authelia release, so you need to confirm compatibility before you follow the steps.
- Tested versions. The guide tested the OpenID Connect Login app v3.2.2 on Nextcloud v31.0.5, the OpenID Connect user backend app v8.0.0 on Nextcloud v31.0.8, and Authelia v4.39.9.
- Current Authelia release. Authelia v4.39.28 is the current release. Confirm that the guide's configuration still applies to it before you upgrade or copy any settings.
- Install both apps deliberately. The guide names two separate apps, so install and version-pin each one against the Nextcloud release you run, and record which versions you verified.
- Plan internal ownership. The guide is community-supported, so your own team will need to own troubleshooting for this route and monitor changes to the guide.
- Pilot on staging first. Build the setup on a staging Nextcloud with matching versions and test sign-in, logout and user provisioning before you touch production. Authelia's documentation on Nextcloud OpenID Connect is the source to read first.
Check the tested app and Nextcloud versions against your own Nextcloud release and the current Authelia release before you copy any step.
Where HTTPS, LDAP and the built-in login limit Nextcloud SSO
Start with transport and passwords, because they decide the protocol before any login test. authentik's Nextcloud guide says OIDC and SAML both require HTTPS, so the Nextcloud host and the redirect URI must be served over TLS first. The same guide says OIDC and SAML do not give Nextcloud the user's cleartext password, so server-side encryption with per-user encryption keys needs LDAP. If your policy requires per-user keys, the account path has to go through LDAP. Decide this with your Nextcloud administrator before you pick a protocol, and confirm which LDAP directory holds the users, which bind account Nextcloud will use, and whether that account can read the attributes you need.
Authelia faces the same HTTPS constraint for a different reason. Its architecture documentation says it works only for websites served over HTTPS because its session cookies require it, and the project declines to support plain HTTP. For Nextcloud, both the Nextcloud URL and the Authelia portal must be served over HTTPS before you configure either app. Authelia's Nextcloud OpenID Connect guide covers two community-tested apps: the OpenID Connect Login app, tested at v3.2.2 on Nextcloud v31.0.5, and the OpenID Connect user backend app, tested at v8.0.0 on Nextcloud v31.0.8, both with Authelia v4.39.9. That guide covers OpenID Connect only. SAML is not covered in Authelia's Nextcloud guide, so ask Authelia in writing whether SAML works with Nextcloud before you commit to it.
Both paths need a tested fallback before go-live. authentik's Nextcloud integration guide says users can reach Nextcloud's built-in login at /login?direct=1 if an OIDC or SAML problem blocks sign-in. Test the fallback before go-live: sign in with a standard account and an admin account, confirm the local login form appears, and confirm which accounts can use a local password. Treat the fallback as a second login path that sits outside SSO, so decide who may use it and check the Nextcloud logs for its use. On support, authentik lists its Nextcloud guide at the Community support level, and the Authelia guide is community-supported. Community support leaves troubleshooting to public channels and your own team, so name the internal owner of a broken login before go-live.
Provisioning users and groups for Nextcloud SSO
Single sign-on only proves identity at login, so provisioning decides where Nextcloud learns about users, groups and quotas, and where it learns that someone has left. The cards separate what each platform documents from what you must confirm in your own Nextcloud before cutover.
Group and quota mapping
authentik's Nextcloud guide says scope mappings can pass storage quota, groups and an admin entitlement to Nextcloud. This is the main control on the authentik side, because group membership and quota arrive with each sign-in and depend on what the claims carry. For illustration, a user added to an admin group in authentik would receive the entitlement at the next login. Check that Nextcloud applies the claimed groups and quota as you expect, and that group names match exactly between the two systems.
authentik Nextcloud guideSCIM as a backchannel option
authentik's integration guides can add an optional SCIM provider as a backchannel to push users to an app. No Nextcloud SCIM route is documented, so confirm one exists before you plan on it. Ask authentik and Nextcloud which component would receive pushed accounts and groups, and what happens to a Nextcloud account when the user is deleted or deactivated upstream. Record the answer before you choose an identity source, because it determines who owns the user lifecycle.
LDAP as the shared user source
Nextcloud's LDAP and Active Directory integration reads users and groups from a directory, and authentik's guide also covers LDAP. LDAP matters most for server-side encryption with per-user keys, which authentik says needs LDAP because OIDC and SAML do not give Nextcloud the user's cleartext password. If you need that encryption, plan LDAP as the user store from the start, because SSO alone will not supply the password. Confirm which system is the source of truth, how Nextcloud maps directory attributes to accounts and groups, and whether a user who exists only in the directory can sign in through SSO.
Nextcloud LDAP guideAuthelia's user backend app
Authelia's Nextcloud guide covers two apps: the OpenID Connect Login app for sign-in and the OpenID Connect user backend app for user data. The guide is community-supported. The user backend app was tested as v8.0.0 on Nextcloud v31.0.8, alongside Authelia v4.39.9, while the login app was tested as v3.2.2 on Nextcloud v31.0.5. Those are separate test points, so match your versions to them or retest. Confirm how group membership and quota reach Nextcloud, since that is the user data most likely to differ from authentik's scope mappings.
Authelia Nextcloud guideBackchannel logout in user_oidc
The user_oidc app README documents backchannel logout, a server-to-server message that can end a Nextcloud session when the identity provider signs the user out. That matters because a session that outlives a sign-out is the main gap between SSO and offboarding. The README also documents per-provider setup with the occ user_oidc:provider command, so provider settings can be scripted and kept in version control. Confirm that each identity provider sends the logout notice to the endpoint Nextcloud expects, and test it in staging, since the README does not show that for either platform.
Deprovisioning removed users
Deprovisioning is the check that matters most on both paths: how a user removed upstream is disabled in Nextcloud. Blocking sign-in at the identity provider may not, on its own, disable the local Nextcloud account, its files or its shares, so confirm what happens in your setup. For each path, identify the mechanism that changes Nextcloud's state: a directory sync through LDAP, the backend app's behavior, or a logout-driven session end. Test a removed user in staging, including open sessions and any app passwords, before go-live, and ask each vendor for its documented behavior in writing.
What Nextcloud SSO costs to license, set up and run
License fees are the smallest and most predictable part of this decision, but the two products price differently. authentik core is MIT licensed, so the software is free to run, yet code under authentik/enterprise needs a paid subscription for production use. The authentik pricing page lists Enterprise at $5 per user per month billed annually, plus $0.02 per external user per month, and Enterprise Plus starting at $20k annually. Its Enterprise-only list names Google Workspace and Microsoft Entra ID integrations, mTLS, privileged access management and enhanced audit logging. It does not list OpenID Connect, SAML or LDAP, but confirm that with authentik in writing before you assume the Nextcloud paths run on the free core. Authelia is licensed under Apache-2.0. The project materials for this comparison name no paid edition, so ask the Authelia project whether commercial support exists and what it covers.
Setup is the largest one-time cost for both, and it is labor you pay for in staff time or in an implementation partner's fixed scope. For authentik, the work covers an OAuth2/OpenID Connect provider with the redirect URI https://<nextcloud>/apps/user_oidc/code, scope mappings that pass storage quota, groups and an admin entitlement to Nextcloud, and HTTPS on both ends. Server-side encryption with per-user keys needs LDAP, because OIDC and SAML do not give Nextcloud the user's cleartext password, so decide early whether you need that LDAP source. Test group-to-role mapping with test accounts, and confirm that /login?direct=1 still reaches Nextcloud's built-in login. Authelia's Nextcloud guide is community-supported and was tested with the OpenID Connect Login app v3.2.2 and the OpenID Connect user backend app v8.0.0 on Nextcloud v31.0.5 and v31.0.8, so check that pairing against your own Nextcloud version. Ask any quote to price provider design, HTTPS, LDAP, group mapping, testing and handover as separate lines.
Recurring work is where the two options diverge most. The authentik 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. Someone must be ready to apply a patch on short notice and rehearse it on a staging copy, and any authentik line you run must move to a supported line before it leaves the policy. On the Nextcloud side, plan for updates to user_oidc or user_saml, and re-check provider settings with occ user_oidc:provider after each change. Confirm Authelia's supported release lines with the project before you set a patch cadence, and retest the login flow after every Nextcloud and app update. In a written quote, ask who applies patches and within what time, what a major upgrade includes, whether the license renews annually, how users and external users are counted, and what happens if the subscription lapses.
What buyers ask before hiring help for Nextcloud SSO
How much effort does a Nextcloud SSO setup take, and what drives it?
The effort depends mainly on the protocol, the directory and the Nextcloud app versions in use. authentik's Nextcloud guide says OIDC is usually the simplest method for a new deployment. OIDC uses the user_oidc app, SAML uses the SSO & SAML (user_saml) app, and LDAP uses Nextcloud's built-in LDAP and Active Directory integration. OIDC and SAML both require HTTPS, so a valid certificate and a correct external URL are the first checks. Per-user server-side encryption needs LDAP, because OIDC and SAML do not give Nextcloud the user's cleartext password. The number of users and groups mostly changes how much group design, mapping and testing you need, while the core steps stay the same. Ask the integrator to name the Nextcloud and app versions they tested against.
How long does a Nextcloud SSO project take?
The timeline is agreed in writing as part of the fixed scope, so no duration is stated here. Ask for a written plan that lists each phase: identity provider setup, Nextcloud app configuration, HTTPS and certificate checks, group and quota mapping, a pilot with test accounts, and cutover. The main drivers are the directory type, whether Nextcloud and its apps are current, how many groups still need decisions, and whether the fallback login has to be tested. Teams that have not settled their group model usually add time at the start, because mapping cannot be finished until the groups are agreed. Ask whether the plan includes a documented rollback to built-in login at /login?direct=1 in case sign-in fails.
What does the client need to provide for a Nextcloud SSO project?
The client provides access and decisions, and the implementation partner does the configuration work. Typical requirements are:
- Administrator access to the Nextcloud instance, including occ commands, and to the identity provider.
- A valid HTTPS certificate for the Nextcloud and identity provider hostnames, with a renewal owner named.
- Access to the directory if LDAP or Active Directory is used, including a service account approved by the directory team.
- Decisions on group names, which groups receive admin rights or storage quotas, and who approves later changes.
- A small pilot group of test users and a named owner who signs off the results.
Confirm in writing who owns DNS, certificate renewal and change windows, because these are the most common causes of delay.
Can an in-house team set up Nextcloud SSO without outside help?
Yes, a team that is comfortable with OIDC concepts and Nextcloud occ commands can often complete a basic setup alone. The community guides are the starting point. authentik's Nextcloud integration page covers OIDC, SAML and LDAP, and Authelia's docs include a community-supported OpenID Connect guide for Nextcloud that lists the app and Nextcloud versions it was tested on. Check your own app versions against those lists before you copy any settings. The redirect URI for authentik's OIDC setup is https://<nextcloud>/apps/user_oidc/code, and the user_oidc README documents per-provider setup with the occ user_oidc:provider command, which helps with scripted configuration. The risks sit in redirect URIs, group claims and fallback login rather than the first screen. Decide up front who maintains the setup after Nextcloud and identity provider upgrades.
Does authentik's Enterprise edition need to be bought for Nextcloud SSO?
Confirm this with authentik before you commit. authentik core is MIT licensed, and its pricing page lists an Open Source edition at no cost with community support through Discord. Code under authentik/enterprise is under the Enterprise Edition license and needs a paid subscription for production use, so the answer depends on whether your design touches an Enterprise-only feature. The pricing page lists Google Workspace and Microsoft Entra ID integrations, mTLS client certificate authentication, privileged access management, password history, enhanced audit logging and ticket-based support as Enterprise features. The Nextcloud setup described in authentik's guide uses OIDC, SAML and LDAP. Ask authentik to confirm in writing that your planned features fall within the free edition, and to quote the Enterprise terms if any of them are needed.
How is a quote for Nextcloud SSO help built?
DeployOpen does not publish a price list, and a quote follows from the written scope. The scope normally lists the Nextcloud and identity provider versions in place, the protocol chosen (OIDC, SAML or LDAP), the directory and group decisions, the HTTPS and certificate work, testing and handover documentation. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Setup, configuration, testing and handover are one-time costs. Ongoing support, upgrades and continuous testing are available as retainers, which recur. Costs rise with more identity sources, custom group logic, more Nextcloud instances and evidence packs for compliance reviews. Ask for a quote that separates one-time work from retainers and lists exclusions, including any licence fees you pay to authentik or other vendors.
How DeployOpen helps set up Nextcloud SSO
DeployOpen plans, implements, integrates, documents and supports self-hosted open-source platforms inside your own infrastructure, so the Nextcloud identity setup runs in your cloud account, data center or air-gapped network. We start from the written scope, then build the authentik or Authelia path your team picks, including the HTTPS requirement and the built-in login fallback. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we scope
- The written scope names which Nextcloud sign-in method is in play: OpenID Connect, SAML 2.0 or LDAP.
- Scope records where user accounts live, such as the identity provider's own store or an existing LDAP directory.
- Engagements are fixed-scope, and ongoing support can follow as a retainer agreed separately.
How we build
- Configure the Nextcloud side with user_oidc for OpenID Connect or user_saml for SAML 2.0, matching the chosen provider.
- Set the OIDC redirect URI to the user_oidc callback path on your Nextcloud hostname, then verify the login round trip.
- With authentik, scope mappings can pass storage quota, groups and an admin entitlement to Nextcloud, so Authelia claims need checking.
How we hand over
- Handover notes record that, per authentik's guide, OIDC and SAML cannot provide per-user server-side encryption, which needs LDAP.
- Documentation covers the Nextcloud app settings, provider configuration and redirect URI used in your environment.
- Handover includes the built-in login fallback at
/login?direct=1, so admins can sign in if SSO fails.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for the Nextcloud identity setup.
- The Authelia community guide tested OpenID Connect Login v3.2.2 on Nextcloud v31.0.5, so check your versions against that.
- Track the authentik release line you run, because security fixes go to the 2026.5.x and 2026.8.x lines.

