Logto logo

Logto

Modern auth infrastructure for SaaS and AI apps

Open-source authentication and authorization platform built on OIDC and OAuth 2.1, delivering multi-tenancy, enterprise SSO, and RBAC without protocol complexity.

Logto banner

Overview

Authentication infrastructure built for modern SaaS and AI

Logto is an open-source authentication and authorization platform designed for teams building scalable SaaS, AI agents, and multi-tenant applications. It abstracts the complexity of OIDC, OAuth 2.1, and SAML, delivering production-ready auth with enterprise features out of the box.

Developer experience meets enterprise capabilities

With SDKs for 30+ frameworks—including React, Next.js, Vue, Flutter, Go, and Python—Logto integrates into any stack in minutes. Pre-built sign-in flows, customizable UIs, and support for social providers (Google, Facebook, Azure AD, Okta) eliminate weeks of implementation work. The platform natively supports multi-tenancy with organization-level RBAC, member invitations, and just-in-time provisioning.

Purpose-built for AI and agent architectures

Logto offers first-class support for the Model Context Protocol and agent-based systems, making it ideal for teams building AI-powered applications that require secure, scalable identity management. Deploy via Logto Cloud for fully managed hosting or self-host using Docker Compose or Node.js with PostgreSQL. Licensed under MPL-2.0, Logto balances open-source flexibility with commercial viability.

Highlights

Multi-tenancy with organization RBAC, SSO, and just-in-time provisioning
SDKs for 30+ frameworks with pre-built, customizable sign-in flows
Full OIDC, OAuth 2.1, and SAML support without protocol complexity
Native Model Context Protocol support for AI agents and architectures

Pros

  • Comprehensive enterprise features (multi-tenancy, SSO, RBAC) included by default
  • Extensive SDK coverage across web, mobile, and backend frameworks
  • Managed cloud option and flexible self-hosting with Docker or Node.js
  • Purpose-built support for AI agents and Model Context Protocol

Considerations

  • MPL-2.0 license requires disclosure of modifications to Logto source files
  • Self-hosted deployments require PostgreSQL database management
  • Enterprise features may introduce complexity for simple use cases
  • Smaller community compared to established auth providers

Managed products teams compare with

When teams consider Logto, these hosted platforms usually appear on the same shortlist.

Amazon Cognito logo

Amazon Cognito

Customer identity and access management service for adding user sign-up, sign-in, and authentication to apps

Auth0 logo

Auth0

Cloud-based identity management platform for adding user authentication and authorization to applications

Clerk logo

Clerk

User authentication and identity APIs for web and mobile apps

Looking for a hosted option? These are the services engineering teams benchmark against before choosing open source.

Fit guide

Great for

  • SaaS platforms requiring multi-tenancy and organization-level access control
  • AI applications and agent-based systems needing secure identity management
  • Teams seeking enterprise SSO and RBAC without vendor lock-in
  • Developers wanting protocol-compliant auth without OIDC/OAuth complexity

Not ideal when

  • Projects requiring only basic username/password authentication
  • Teams unable to manage PostgreSQL or container infrastructure
  • Organizations mandating permissive licenses like MIT or Apache 2.0
  • Applications needing auth solutions with decades of production hardening

How teams use it

Multi-tenant B2B SaaS authentication

Deploy organization-based access control with SSO, RBAC, and member provisioning in days instead of months

AI agent identity and authorization

Secure agent-to-service communication using Model Context Protocol with standards-based token management

Enterprise SSO integration

Connect customer identity providers via SAML or OIDC without building custom federation logic

Unified auth across web, mobile, and APIs

Implement consistent authentication flows across React SPAs, Flutter apps, and backend services using framework-specific SDKs

Tech snapshot

TypeScript97%
SCSS2%
JavaScript1%
HTML1%
PLpgSQL1%
MDX1%

Tags

identityjwtrbacsocial-loginpasswordauthorizationopenid-connectloginsignupoauth2passwordlesslogtossototpemailmfasmstypescriptauthenticationsaml

Frequently asked questions

What protocols does Logto support?

Logto fully supports OIDC (OpenID Connect), OAuth 2.1, and SAML for both inbound and outbound federation, enabling integration with any standards-compliant identity provider or application.

Can I self-host Logto?

Yes. Logto can be self-hosted using Docker Compose or Node.js with a PostgreSQL database. Full installation guides are available in the documentation.

What is the Model Context Protocol support?

Logto provides native authentication and authorization for AI agents and systems built on the Model Context Protocol, enabling secure identity management for agent-based architectures.

How does multi-tenancy work in Logto?

Logto offers organization-based multi-tenancy with per-organization RBAC, member invitations, just-in-time provisioning, and isolated SSO configurations for each tenant.

What frameworks have official SDKs?

Logto provides SDKs for 30+ frameworks including React, Next.js, Angular, Vue, Flutter, Swift, Kotlin, Go, Python, and more, covering web, mobile, and backend environments.

Project at a glance

Active
Stars
11,458
Watchers
11,458
Forks
689
LicenseMPL-2.0
Repo age4 years old
Last commit13 hours ago
Self-hostingSupported
Primary languageTypeScript

Last synced 12 hours ago