selfhostedworld.com logoselfhostedworld.com
Type to search software and tags...

Best open-source alternatives to Auth0

A cloud identity platform for authentication and authorization.

Auth0 provides developer-friendly OAuth2/OIDC, social login, MFA, and enterprise SSO as a managed service. It is widely adopted for its SDKs and quick time-to-value, but its per-MAU pricing scales poorly for large user bases and its SaaS nature means your identity data lives on third-party infrastructure.

4 alternatives listed
  1. 1authentik logo
    20.9k

    authentik is an open-source identity provider aimed at modern single sign-on and identity management use cases. It is intended for self-hosted deployments ranging from small labs to large production environments, and it explicitly positions itself as a replacement for products such as Okta, Auth0, Entra ID, and Ping Identity. The project supports multiple identity protocols, including SAML, OAuth2/OIDC, LDAP, and RADIUS, which makes it useful as a central authentication layer for heterogeneous application ecosystems. The README also points to an enterprise offering, and it provides deployment paths through Docker Compose, Kubernetes via Helm, AWS CloudFormation, and a DigitalOcean Marketplace app.

    Open CoreCloud OptionalMulti-UserDockerKubernetes
    Install:docker-composekubernetessource

    Features:

    • SSO
    • SAML
    • OAuth2/OIDC
    • LDAP
    • RADIUS

    +3 more

    Auth:samloidc-ssoldap
  2. Stack Auth is an open-source authentication platform aimed at developers building modern web applications. It offers managed authentication, user management, and authorization features, while remaining self-hostable and optional to use as a hosted service. The project is designed to help teams get started quickly with prebuilt sign-in and sign-up components, account settings, user dashboards, and support for OAuth, passwords, magic links, and passkeys. It also includes organization and team management, role-based access control, impersonation, webhooks, automated emails, token handling, and machine-to-machine authentication. The README indicates support for Next.js, React, JavaScript frontends, and any backend that can call its REST API. It appears geared toward projects that need a production-ready identity layer with both hosted and self-hosted deployment options, plus a developer-oriented setup and local development environment.

    Cloud OptionalMulti-UserMulti-Tenant
    Install:source

    Features:

    • Sign-in and sign-up components
    • OAuth, password, and magic-link authentication
    • User dashboard
    • Account settings
    • Multi-tenancy and teams

    +5 more

    Auth:oauthlocal
  3. 3cerbos logo
    4.3k

    Cerbos is a self-hosted authorization system designed to sit between an application and its access-control logic. It helps teams define permissions in YAML policies and evaluate those policies at runtime through APIs, so applications can make dynamic allow/deny decisions without embedding complex authorization logic directly in code. The project is aimed at developers and platform teams building applications that need fine-grained access control, including RBAC and more context-aware ABAC-style rules. It supports deployment as a standalone Policy Decision Point in environments such as Kubernetes, systemd, or serverless functions, and it integrates with applications through SDKs and query plan adapters. A cloud-hosted Cerbos Hub is also mentioned for collaborative policy authoring and distribution, but the core PDP is self-hosted.

    Cloud OptionalMulti-UserDockerBinaryPackageHelm
    Install:dockerbinarypackage-managerhelm

    Features:

    • context-aware access control rules
    • YAML policy authoring
    • GitOps-managed deployment
    • policy evaluation APIs
    • CheckResources API

    +5 more

    Auth:local
  4. MIT Licensefully-open

    ShotShare is a self-hosted image sharing platform designed for people who want a simple way to upload screenshots and share links without ads or extra clutter. It is described as open source and bare bones, suggesting a lightweight focus rather than a broad media management suite. The project is aimed at individuals or small groups running their own instance. The README explains deployment with Docker, local development with Docker Compose, and configuration through environment variables, with support for SQLite by default and other common SQL databases. It also documents integration with screenshot tools such as ShareX and Shutter, and provides commands for cleaning images and creating users when registration is disabled.

    OfflineMulti-UserDockerDocker
    Install:dockerdocker-composesource

    Features:

    • image uploading
    • image sharing links
    • ShareX integration
    • Shutter integration
    • user registration

    +5 more

    Auth:local

What to look for in a Auth0 alternative

Prioritize standards compliance (OAuth2, OIDC, SAML) and SDK ecosystem coverage for your stack. Check whether the alternative supports social providers, passwordless, and adaptive MFA out of the box. Operational complexity matters here — identity infrastructure is critical path, so assess deployment reliability, upgrade paths, and community support carefully.