Authelia vs Ory

Authelia is the lighter choice for putting login and second factors in front of existing web apps behind a reverse proxy. Ory fits teams building login and identity into their own product, with APIs and their own login UI.

On this page

Authelia vs Ory: when each one fits

If your team is putting single sign-on and second factors in front of self-hosted web apps, or building login into your own product, Authelia and Ory start from different places. Choose Authelia when a reverse proxy already sits in front of your apps and you want it to check each request before it reaches them. Authelia works with proxies such as Traefik, Caddy, NGINX and HAProxy, authenticates users against an LDAP directory such as FreeIPA or Microsoft Active Directory or against a YAML file of hashed passwords, and offers OpenID Connect without SAML. Every protected site must run over HTTPS, because Authelia's session cookies require it. The project is licensed under Apache-2.0.

Choose Ory when the login screen has to be yours. Kratos is an API-first identity and user management system that supports passwords, passkeys, social sign-in and TOTP, and your team builds the login UI on top of it. Hydra, also Apache-2.0, is an OpenID Certified OAuth 2.0 and OpenID Connect server that works with your existing user management through headless APIs. Open source suits evaluation and deployments that can accept upgrade downtime and do not require guaranteed CVE patching. SAML, SCIM, organization-level SSO and CAPTCHAs are enterprise features, and the Ory Enterprise License adds 24/7 support SLAs and timely CVE patches. Ory Network is the managed option if you would rather not run the stack yourself.

Five decisions settle the choice. First, is SAML required? Authelia has no SAML support, so SAML pushes you toward Ory's enterprise features or another identity platform. Second, must the login page be yours? If it must, Kratos fits; if a login portal in front of your proxy is acceptable, Authelia may be enough. Third, where do identities live? An existing LDAP directory or Active Directory points toward Authelia's LDAP backend, while users created inside your product point toward Kratos. Fourth, do you need multi-tenancy, where each customer manages its own users? In Ory that sits in the enterprise license, so put it in the quote. Fifth, who will run the stack? Authelia is a single companion service, while Ory is a set of separate components you configure and patch. Confirm with each vendor which edition covers the features you need before you commit.

Which scenario points to Authelia vs Ory

This table matches common requirements to the platform that fits them better, along with the condition that would reverse the answer. Read each row as a starting point, then check the flip condition against your own applications and user directory. For most teams, the deciding questions are whether login sits in front of existing web apps or inside a product you build, and whether SAML is required.

ScenarioBetter fitWhyWhat flips the answer
Self-hosted web apps behind Traefik, Caddy or NGINX that need 2FAAutheliaAuthelia is a companion to these proxies and adds one-time passwords, security keys, passkeys or Duo push.Apps sit behind a proxy that is not on Authelia's supported list, or the apps need SAML.
SaaS product with its own login pages and customer organizationsOryKratos lets your team build its own login UI, and Hydra handles OAuth 2.0 and OpenID Connect through headless APIs.Kratos multi-tenancy and organizations sit in the Ory Enterprise License, so confirm that edition before committing.
Enterprise customer requires SAML single sign-onOryAuthelia's support chart lists no SAML. Ory Polis provides SAML and OIDC single sign-on with SCIM sync under Apache-2.0.Only if the customer accepts OIDC instead of SAML does Authelia become a candidate for this requirement.
Existing LDAP or Active Directory users who sign in to proxied appsAutheliaAuthelia authenticates users directly against OpenLDAP, FreeIPA or Active Directory, with second factors on top.Apps need SAML or OIDC tokens issued from the directory, so confirm directory connectors in Ory before choosing.
Team with no capacity to build login screensAutheliaAuthelia ships its own login portal, so no sign-in pages need to be designed or built.Sign-in pages must match your product, which means building them on Ory. Confirm the hosting model first.
Open source build only, with no paid featuresAutheliaAuthelia is Apache-2.0 licensed, and this comparison names no paid Authelia edition.You need SAML, SCIM, organization SSO or CAPTCHA, which Kratos keeps in its enterprise features.

How Authelia and Ory are built and what that means for operations

Authelia is one companion service that sits beside your reverse proxy and keeps its state in a database you choose. Ory is a set of separate services, each with its own configuration and upgrade path. The difference shows up later, in upgrades, monitoring and on-call work.

Authelia answers the proxy's question

Authelia runs beside your reverse proxy, and the proxy asks it whether each request may pass. Unauthenticated users are redirected to Authelia's login portal, where they sign in and complete a second factor. HTTPS is mandatory, because Authelia's session cookies require it and the project does not support plain HTTP. Before you plan the rollout, confirm that every protected hostname, including internal ones, has a valid certificate.

Authelia architecture

Authelia keeps state in one database

Authelia stores user preferences, second factor device registrations and authentication logs in PostgreSQL, MySQL or local SQLite. You choose the backend at installation, and it becomes the one stateful piece you must back up and restore. SQLite keeps everything in a local file, which is simpler to start with but ties the state to one host. Ask your security team how long authentication logs must be kept and who can read them, because that answer decides which backend fits.

Authelia storage

Ory splits identity into five services

Ory is built from separate components: Kratos for identities, Hydra for OAuth 2.0 and OpenID Connect, Keto for permissions, Oathkeeper as an access proxy and Polis for SAML and OIDC single sign-on with SCIM sync. Each is deployed and upgraded as its own piece, so one login change can involve several services. For example, Kratos may handle the login flow while Hydra issues the tokens that your applications receive. List the components your use case needs before you compare effort, because a team that only needs login may not need all five.

Ory Kratos introduction

Ory database support varies by component

Kratos supports SQLite, PostgreSQL, MySQL and CockroachDB, so its database can match the platform your team already runs. Hydra and Keto database support needs confirmation from Ory before you assume one database platform across all five services. Record the database and version of each component in your architecture document, so backup, restore and upgrade steps are written for each one. Authelia's backend choice is narrower, but it still needs the same per-service record.

Upgrades multiply across components

Each Ory component needs its own upgrade plan, its own schema changes and its own rollback test, so the work grows with every service you run. Ory states that its open source servers suit deployments where occasional upgrade downtime is acceptable and guaranteed CVE patching is not required. Authelia has fewer parts to coordinate, but it still needs a tested upgrade path for its database. Ask Ory which upgrade and CVE terms apply to each edition before you commit to the open source tier.

Ory Enterprise License

Monitoring and on-call coverage

Every additional service adds its own health checks, logs, metrics and alerts, and the on-call engineer must know which component is failing. A login failure with Authelia starts at Authelia and its database, which gives the first triage step fewer places to look. Ory's split design can isolate faults more precisely, but only if your logging maps each component to a named owner. Every extra service needs its own alerts, so agree a runbook per component and confirm the telemetry each vendor exposes before you set thresholds.

How a login request flows through each stack

This simplified, illustrative flow is not a deployment design. The top path starts with a browser request that crosses the HTTPS edge to a reverse proxy, which asks Authelia whether to allow it. Unauthenticated users go to the login portal, which checks credentials against an LDAP or file backend. Authelia's storage database sits behind its own trust boundary. The lower path starts at a client app that asks Hydra for OAuth 2.0 or OpenID Connect tokens, and Hydra hands login to a UI your team builds. That UI calls Kratos for identity checks, while Oathkeeper fronts API calls and Keto answers permission checks. Check which components your team hosts and who owns each store.

Simplified, illustrative login flow for each stack, not a deployment design.

Authelia vs Ory feature by feature

This table compares Authelia and Ory across licence, release, protocols, second factors, user storage, proxy integration, login UI, permissions and social sign-in. Read the cells as a checklist: where a capability is not confirmed for a platform, the cell names what to verify before you rely on it. The main takeaway is that Authelia is a login and second-factor companion for reverse proxies, while Ory is a set of separate headless services that you combine and operate.

CapabilityAutheliaOry
LicenceApache-2.0 for the single sign-on and two-factor serverApache-2.0 for Kratos, Hydra, Keto, Oathkeeper and Polis, with the Ory Enterprise License for enterprise features
Current releasev4.39.28, released September 17, 2026Kratos and Hydra v26.2.0, released March 20, 2026; confirm the current release with Ory
ProtocolsOpenID Connect with OpenID Certified Basic, Implicit, Hybrid, Form Post and Config OP profiles; no SAML in its support chartHydra is an OpenID Certified OAuth 2.0 and OpenID Connect provider; Polis adds SAML and OIDC single sign-on with SCIM
Second factorsOne-time passwords, security keys, passkeys and Duo mobile pushKratos supports TOTP as multi-factor and passkeys as a login method; confirm security keys and Duo push
User storage and databasesAuthenticates against LDAP (OpenLDAP, FreeIPA, Active Directory) or a YAML file; stores preferences, devices and logs in PostgreSQL, MySQL or SQLiteKratos keeps identities itself, on SQLite, PostgreSQL, MySQL or CockroachDB; confirm LDAP or AD federation
Proxy integrationCompanion to reverse proxies such as Traefik, Caddy, Envoy, NGINX and HAProxy; requires HTTPSOathkeeper is an identity and access proxy; confirm how it works with your existing reverse proxy
Login UIBuilt-in login portal that the proxy redirects unauthenticated users toAPI-first, so your team builds its own login UI on Kratos APIs
PermissionsConfirm how access rules and group policies are defined and managed with the vendorKeto is a Zanzibar-based permission server supporting ACL, RBAC and more
Social sign-inConfirm with the Authelia project whether social login providers are supportedKratos supports social sign-in; confirm which providers and features are in the open source build

What is paid for in Authelia and in Ory

Authelia is licensed under Apache-2.0, and the current release is v4.39.28, released on September 17, 2026. The supplied material does not describe a paid edition or a separate enterprise license for Authelia. Whether a commercial support contract exists, and what it would cover, is something to confirm directly with Authelia.

  • Software license: Apache-2.0 permits you to run the server without a license fee, so recurring spend sits in infrastructure, staff time and any support contract you choose.
  • Commercial support: Ask Authelia whether paid support is available, what response targets it commits to and whether it covers the proxy and user backend you use.
  • Internal effort: Your team configures the reverse proxy integration, the LDAP or file user backend and the storage database, which can be PostgreSQL, MySQL or SQLite.
  • Patching: Confirm the patch window you can rely on for the version you run, and track the GitHub releases page for each update.
  • Second factor services: If you use Duo push, your Duo licensing is a separate cost from Authelia, so confirm it with Duo.

Before relying on Authelia for a regulated workload, get the support terms in writing and check that the level of support you need is offered at all.

What drives the running cost of each stack

Running cost depends on how many services you operate, who can change them, and what happens when a security fix ships. The six drivers below cover the points where Authelia and Ory diverge most. For each, check what is paid once, what recurs, and what to request in a quote.

Infrastructure and services

Authelia runs as one service backed by one database, with PostgreSQL, MySQL or local SQLite for storage. Ory is a set of services: Kratos for identities, Hydra for OpenID Connect, and optionally Keto or Oathkeeper, each with its own database. Setup is largely one-time, but hosting, backups, monitoring and TLS certificates for every service recur. Authelia itself requires HTTPS, so every hostname needs a certificate. Cost climbs with each extra service, environment and replica. In the quote, ask for each service, database, backup job and certificate, and who owns it.

Authelia storage docs

Skilled staff for OpenID Connect

Authelia's day-to-day work sits in reverse proxy configuration, a YAML file and an LDAP or file user backend, so the skills are proxy and directory administration. Ory asks more of the team: someone must understand OpenID Connect flows well enough to configure Hydra, and someone must build and maintain login screens against Kratos APIs. Learning and onboarding are one-time costs. Ongoing staff time recurs, and it grows with every custom flow and client application. Before signing, ask who designs the flows, what your staff must know after handover, and which skills your team keeps in-house.

Authelia OpenID Connect docs

Support route and terms

Ory's paid route is the Ory Enterprise License, which adds support SLAs and timely CVE patches on top of the same servers. Open source Ory carries no guaranteed patch timing, and Ory positions it for evaluation, development and deployments that accept occasional upgrade downtime. Confirm with the Authelia project and any third party whether a paid support contract exists and what response it guarantees. Support fees recur, and cost rises with the number of environments and components covered. Ask for response times, covered components, and the escalation path.

Ory Enterprise License

Upgrades and CVE response

Ory says open source suits deployments where occasional upgrade downtime is acceptable and guaranteed CVE patching is not required. The Ory Enterprise License adds timely CVE patches, and its builds are drop-in replacements for open source installations. Authelia publishes releases on GitHub, so confirm its patch window, supported release lines and how security advisories reach you. Recurring cost is staff time for each upgrade, test pass and advisory, and it grows with every Ory service you run. Ask each vendor for patch timing per component, the notice period before breaking upgrades, and the rollback steps it supports.

Authelia releases

Building a custom Ory login UI

Kratos is API-first, so a custom Ory login UI is your build: sign-in, registration, recovery, passkeys and multi-factor enrollment each need screens and error handling. That work is one-time at launch, then recurs as the screens change and the APIs they call evolve. Authelia ships its own login portal, so its equivalent effort is configuration. The build cost rises with the number of flows, the branding you require, the accessibility review you run and the number of applications sharing one UI. In the quote, ask for a written list of screens and flows, test coverage for each, and who owns the UI code after handover.

Kratos introduction

License scope and feature gating

Authelia's repository is Apache-2.0 licensed. Ory's core servers are also Apache-2.0, but the Kratos README places SCIM, SAML, organization login and CAPTCHAs among enterprise features outside the open source version. Ory offers them on top of self-hosted Kratos, so confirm which of them sit under the Ory Enterprise License. Your requirements decide whether you need that license, so map each feature before choosing. Ory Network, the managed service, is a separate option. Confirm whether Enterprise License fees recur, on what term, and which components and features the agreement covers.

Kratos repository

Where Authelia and Ory implementations run long

Authelia projects run long where the work sits outside Authelia itself. HTTPS on every protected host is the first gate, because Authelia's session cookies require it and the project does not support plain HTTP, so certificate issuance and renewal for each protected hostname must be settled before configuration starts. Each reverse proxy and application then needs its own wiring to the Authelia endpoint, and the access rules must be written and tested per domain, group and resource. If users come from LDAP, the attribute mapping for usernames, email addresses and group membership has to match what the directory actually holds, which usually means a working session with the directory owner. Finally, set the second factor enrolment and recovery policy: which factors are allowed (one-time passwords, security keys, passkeys or Duo push), whether users may enrol themselves, and how a lost device is recovered without weakening the second factor.

Ory projects run long because the team builds most of the user experience. Kratos is API-first and lets you build your own login UI, so the identity schema and the registration, login, recovery and MFA screens become design and build work that Ory does not deliver for you. Hydra then needs consent screens wired to each client application through its headless APIs, and each client's redirect and scope configuration must be agreed with that application's owner. Database and key handling also needs planning early. Kratos supports SQLite, PostgreSQL, MySQL and CockroachDB, and the database choice, backup routine and signing key rotation should be written down before go-live, not improvised afterwards.

Both platforms share one decision that shapes the schedule: which enterprise features are required. The Kratos README lists SCIM, SAML, organization login and CAPTCHAs as enterprise features the open source version does not include, and the Ory Enterprise License documentation describes the paid self-hosted option with support and CVE patch commitments. Confirm the current terms with Ory before you fix the design. Whichever path you take, the client must supply identity source owners who can confirm directory attributes and groups, an application inventory with redirect URIs and scopes, a named security sign-off owner, and test users for each factor and recovery path. DeployOpen timelines depend on a written scope, so the schedule is set once the scope and these inputs are agreed in writing.

Moving between Authelia and Ory: what transfers and what gets rebuilt

This sequence moves sign-in for each application from Authelia to Ory in an order that keeps access working throughout. The app inventory, user records in the source directory and documented policies carry over, while proxy rules, OpenID Connect client registrations, login screens and any second factor that cannot be moved are rebuilt or re-enrolled.

  1. Inventory each app and its login method

    Your team lists every application that will move and records how each one signs users in. Apps behind a supported reverse proxy use proxy-based login, where Authelia answers each request the proxy forwards. Apps that can use OpenID Connect will get their tokens from Ory Hydra, so they need client registrations. Authelia does not support SAML, so flag any SAML app now. Record the owner, hostname, allowed groups and whether the app requires a second factor. Output: an inventory where every app has one login method and one named owner, confirmed by each owner.

  2. Confirm the user source and import path

    Decide where users live before any account is moved. Authelia can keep reading users from an existing LDAP directory such as OpenLDAP, FreeIPA or Active Directory, or from a YAML file, so directory accounts can stay where they are. Ory Kratos stores identities in its own database, so confirm with Ory how directory or file accounts are brought in, including how password hashes are handled. Output: a written source decision for each user group and a test import run on a copy of the data.

  3. Test whether second factors can move

    Establish which second factor registrations can be carried across. Authelia stores second factor device registrations in its database and offers one-time passwords, security keys, passkeys and Duo mobile push. Kratos supports TOTP and passkeys among its multi-factor options, but whether existing Authelia registrations can be imported is a question to confirm with Ory and to test with one account per factor type. Where a registration cannot move, plan re-enrolment and notify affected users before cutover. Output: a factor-by-factor table showing transfer or re-enrolment and the users affected.

  4. Rebuild access rules and client registrations

    Rewrite the enforcement layer on the new side. Authelia access rules sit in its own configuration and in the proxy routes that send requests to it, so each route and group rule must be written again for the stack that serves it. For Ory, build the login and consent screens on Kratos flows, register each OpenID Connect client in Hydra, and decide whether Keto or Oathkeeper handles fine-grained permissions. Written policies transfer as documents, but the enforcement is rebuilt. Output: a rule set where every route and client matches the documented policy, checked by a test user in each group.

  5. Run both stacks and cut over

    Run Authelia and the Ory side in parallel, and move one application at a time. Keep Authelia serving the apps not yet moved while the Ory side serves a pilot group. For each app, test sign-in, second factor prompts, group-based access, logout and session expiry using the same test accounts. Keep the previous route in place so you can switch back. Output: a cutover record per app showing test results, the date of the change and the rollback step, with the old route removed only after the app owner signs off.

  6. Retire the old stack and keep logs

    Retire Authelia only after the last application has moved. Before shutdown, export the authentication logs, user records and configuration held in its storage, which uses PostgreSQL, MySQL or SQLite. Store the archive where your audit team can read it, and ask your compliance owner to set the retention period. Revoke the old service accounts and secrets. Output: an archive whose sample entries you have opened and read, and a decommissioning record signed by the system owner.

Questions buyers ask before choosing Authelia or Ory

Which is cheaper to run, Authelia or Ory?

Authelia and the Ory core components are all Apache-2.0, so the open-source software itself carries no license fee, and the running cost comes from what you operate around it. For Authelia, the main drivers are the user backend you connect (an LDAP directory or a YAML file of hashed passwords), the database that stores preferences, second factor registrations and logs, the reverse proxy, and staff time for upgrades. For Ory, the drivers include how many separate services you run (such as Kratos and Hydra), the login interface your team builds and maintains, and whether you need features in the commercial layer, such as SAML or organization login. Ask Ory for a written quote on the Enterprise License. Ask any implementation partner for a fixed-scope quote that lists one-time work separately from recurring support.

How long does an Authelia or Ory implementation take?

The timeline depends on how many applications sit behind the login, which identity source you connect, and what the written scope includes, so no single duration applies to both products. An Authelia rollout is mostly proxy configuration, access rules for each application, and the chosen identity backend. An Ory rollout also includes building or adapting login, registration, recovery and consent pages, because Kratos leaves the interface to your team. Ask for the milestones in writing: identity source, second factors, application onboarding, testing and handover. DeployOpen agrees scope, deliverables and timelines in writing before fixed-scope work starts, so a quote should state those milestones and what your staff must provide.

Can a small team run Authelia instead of building login flows on Ory?

A small team can run Authelia if it already operates a reverse proxy and has an identity source such as LDAP or a YAML user file, because Authelia supplies the login portal, second factors and self-service password reset. Its supported proxies include Traefik, Caddy, NGINX and HAProxy, and it only works for sites served over HTTPS. Building on Ory takes more of your own code: Kratos is an API-first identity system, so your team designs and maintains the login interface and account flows, while Hydra provides OAuth 2.0 and OpenID Connect through headless APIs that connect to your user store. Ory suits teams that want that control and have developers to own it after go-live. Confirm the staffing you need with the vendor or a partner before committing.

Do customers need SAML single sign-on from our identity provider?

Authelia alone cannot serve customers who require SAML, because its support chart lists no SAML. Its OpenID Connect certification covers OIDC integrations only. On the Ory side, the Kratos README lists SAML as an enterprise feature not available in the open source version, while Ory Polis is an Apache-2.0 project for SAML and OIDC single sign-on with SCIM directory sync. Confirm three things in writing with Ory: whether Polis meets your SAML requirement in the version you deploy, which license terms apply when you run it in production for customers, and whether SCIM and organization login are covered by the edition you choose. Also ask your customers which protocol their identity provider uses, since that decides whether SAML is required.

Can we move from open source Ory to the Enterprise License later?

Ory says OEL builds are drop-in replacements for open source installations, so the move may not require rebuilding your deployment, but confirm version compatibility before you plan around it. The Ory Enterprise License is optimized builds of the same open source servers, adding features such as Kratos multi-tenancy and organizations, the Hydra ROPC grant, 24/7 support SLAs and timely CVE patches. Ory positions open source for evaluation, development and deployments that accept occasional upgrade downtime without guaranteed CVE patching. Ask Ory which Kratos, Hydra and Polis versions your OEL build matches, whether configuration or database changes are required, and what support window applies. Moving from Authelia to Ory is a different project, because the two products are separate, so this question applies only within the Ory stack.

Does Ory Network remove the operating work of self-hosting?

Ory Network shifts hosting of the managed service to Ory, but it does not remove every operating task, so confirm its scope in writing before you assume less work. Ory describes Ory Network as its managed cloud service, offered alongside the self-hosted open source components and the Enterprise License. Ask which components it runs, what your team still owns (user lifecycle, integrations, login interface, custom code and upgrades of your own applications), and what backup, uptime and support terms apply. Ask where data is stored and in which regions, and whether that fits your residency and audit requirements. DeployOpen's engagements cover self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks, so a managed Ory Network setup falls outside that work.

When is an implementation partner worth hiring for Authelia or Ory?

An implementation partner is worth hiring when the work has a defined end and your team lacks the time or skills, such as connecting many applications, building an Ory login flow, or meeting a customer SAML requirement. DeployOpen plans, implements, integrates, hardens, backs up, upgrades and documents self-hosted open source platforms inside your infrastructure. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ongoing support, upgrades and continuous testing are available as retainers, which suits teams that want a standing owner after handover. DeployOpen does not publish a price list, so a quote follows from the written scope. Hire for the build alone if your team can operate the result, and add a retainer if upgrades will stay outside your staff.

How DeployOpen helps choose and implement Authelia or Ory

DeployOpen starts by working out whether the team needs a login layer for applications behind a reverse proxy or a headless identity platform that issues tokens and manages users for its own products. Once the choice is made, we plan, implement, integrate, harden and document the chosen platform inside the client's own infrastructure.

How we scope

  • The written scope names the Authelia or Ory components in play and the applications each one protects.
  • We confirm the user source early: LDAP or Active Directory, a YAML file, or the identity store your products use.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts; ongoing support is available as a retainer.

How we build

  • For Authelia, we configure proxy integration, second factors (one-time passwords, security keys, passkeys or Duo push) and HTTPS-only session cookies.
  • For Ory, we build Kratos for identities and Hydra for OAuth2 and OpenID Connect, plus the self-built login UI.
  • We confirm which needs, such as SCIM, SAML or organization SSO, require the Enterprise License before the design is fixed.

How we hand over

  • Written deliverables cover deployment and integration records, configuration documentation, and the access and audit logging setup.
  • We prepare controls and evidence for your compliance assessment; independent auditors and certification bodies issue any reports.
  • Documentation covers upgrade steps and the parts of the stack that stay with your own staff after go-live.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for the Authelia or Ory setup after go-live.
  • Application and API security testing of the login flows and token endpoints can be scoped separately.
  • Ask for named responsibilities for patching, CVE response and upgrades in the quote, since Ory's support levels differ by license.

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.