Logto — Open Source Authentication & Authorization for SaaS
Logto is an open-source Auth0 alternative providing OIDC/OAuth 2.1 authentication with multi-tenancy, SSO, RBAC, and MFA for modern SaaS and AI apps.
Staging sûr pour cet actif
Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.
npx -y tokrepo@latest install 558aece6-349d-11f1-9bc6-00163e2b0d79 --target codexStage les fichiers d'abord; l'activation exige la revue du README et du plan staged.
What it is
Logto is an open-source authentication and authorization platform built on OIDC and OAuth 2.1 standards. It provides a complete identity infrastructure for SaaS applications including customizable sign-in pages, social login (Google, GitHub, Apple), enterprise SSO via SAML and OIDC, multi-factor authentication, role-based access control, and multi-tenancy with per-organization settings. Released under MPL-2.0.
Logto targets SaaS developers who need production-ready authentication without building it from scratch. It serves as an alternative to Auth0, Clerk, and Firebase Auth with full data ownership when self-hosted.
How it saves time or tokens
Logto eliminates the weeks of development typically needed to implement authentication, authorization, and user management. The pre-built sign-in UI handles all edge cases (password reset, email verification, social login flows) out of the box. Multi-tenancy support with organization management saves significant custom development for B2B SaaS products.
How to use
- Run the Docker container with PostgreSQL connection configured.
- Access the admin console at localhost:3002 to configure your sign-in experience and application settings.
- Integrate with your application using the Logto SDK for your framework (React, Next.js, Vue, Express, etc.).
Example
docker run --name logto -p 3001:3001 -p 3002:3002 \
-e DB_URL=postgres://postgres:password@host.docker.internal:5432/logto \
ghcr.io/logto-io/logto:latest
# Admin console at http://localhost:3002
# Auth endpoint at http://localhost:3001
Related on TokRepo
- AI Tools for Security -- Authentication and security tools for applications
- AI Tools for API -- API gateway and auth tools
Common pitfalls
- The Docker container requires a PostgreSQL database; the embedded database option is for development only and does not persist data across restarts.
- OIDC redirect URIs must be configured exactly; trailing slashes or protocol mismatches cause silent authentication failures.
- Multi-tenancy (Organizations) requires the cloud plan or self-hosted enterprise setup; the basic self-hosted version has limited multi-tenancy features.
Questions fréquentes
Logto provides core Auth0 features -- OIDC, social login, SSO, MFA, RBAC, and organizations -- as open-source software. Auth0 has a larger ecosystem of pre-built integrations and a more mature rule/action system. Logto is free when self-hosted, while Auth0 charges based on active users. For new SaaS projects, Logto covers most authentication needs at zero cost.
Yes. Logto supports passwordless sign-in via magic links, email OTP, and SMS OTP. You can configure passwordless as the primary sign-in method or offer it alongside traditional email/password authentication.
Yes. The admin console provides a sign-in experience editor where you configure branding (logo, colors, dark mode), sign-in methods, social connector buttons, and terms of service links. For deeper customization, you can build a custom sign-in page using the Logto SDK.
Logto offers official SDKs for React, Next.js, Vue, Angular, Express, Koa, Python, Go, Swift (iOS), and Kotlin (Android). The SDKs handle the OIDC flow, token management, and session handling. Any OIDC-compatible library also works with Logto.
Yes. Logto supports SAML and OIDC federation for enterprise SSO, multi-tenancy with per-organization settings, and user provisioning. Enterprise customers can sign in through their corporate identity provider (Okta, Azure AD, Google Workspace) while you manage access through Logto's organization system.
Sources citées (3)
- Logto GitHub— Logto is an open-source Auth0 alternative with OIDC/OAuth 2.1
- Logto Documentation— OIDC and OAuth 2.1 standards for authentication
- IETF OAuth 2.1— OAuth 2.1 specification draft
En lien sur TokRepo
Source et remerciements
- GitHub: logto-io/logto — 11.9K+ ⭐ | MPL-2.0
- Website: logto.io
Fil de discussion
Actifs similaires
Zitadel — Open Source Identity Infrastructure
Zitadel is an open-source identity management platform with OIDC, SAML, SSO, MFA, passkeys, and multi-tenancy — built for cloud-native apps and enterprise needs.
SuperTokens — Open Source Auth0 Alternative
SuperTokens is an open-source authentication solution with email/password, passwordless, social login, session management, and MFA. Drop-in UI components for React, Vue, and Angular.
Authentik — Open Source Identity Provider & SSO Platform
Authentik is a flexible open-source identity provider with SSO, MFA, user enrollment flows, and application proxy — the authentication glue for your self-hosted stack.
Strapi — Leading Open Source Headless CMS
Strapi is the most popular open-source headless CMS with 71K+ stars. Visual content-type builder, REST & GraphQL APIs, RBAC, and extensive plugin marketplace.