logto  by logto-io

Open-source auth infrastructure for SaaS and AI apps

created 4 years ago
10,530 stars

Top 4.9% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Logto provides a comprehensive, open-source authentication and identity infrastructure solution for SaaS and AI applications, targeting developers and teams seeking an alternative to Auth0. It simplifies the implementation of OIDC, OAuth 2.1, and SAML, offering features like multi-tenancy, enterprise SSO, and RBAC out-of-the-box, with broad framework support.

How It Works

Logto leverages standard protocols like OIDC and OAuth 2.1 to provide a flexible and secure authentication layer. Its architecture is designed for ease of integration across various application types (SPAs, web apps, mobile apps, APIs) and supports modern AI architectures like the Model Context Protocol. The system offers pre-built, customizable UI components and SDKs for over 30 frameworks, abstracting away protocol complexities.

Quick Start & Requirements

  • Logto Cloud: Fully managed, zero setup.
  • GitPod: Launch OSS in seconds via gitpod.io.
  • Local Development (Docker Compose):
    curl -fsSL https://raw.githubusercontent.com/logto-io/logto/HEAD/docker-compose.yml | docker compose -p logto -f - up
    
  • Local Development (Node.js):
    npm init @logto
    
  • Prerequisites: Docker Desktop (for Docker Compose), PostgreSQL (for Node.js).
  • Documentation: docs

Highlighted Details

  • Supports multi-tenancy, enterprise SSO, and RBAC without workarounds.
  • Offers SDKs for 30+ frameworks including React, Next.js, Angular, Vue, Flutter, Go, and Python.
  • Compatible with Model Context Protocol and agent-based AI architectures.
  • Connects to various Identity Providers (IdPs) like Google, Facebook, Azure AD, and Okta.

Maintenance & Community

  • Active development with a presence on Discord for community discussions.
  • Encourages contributions and community resource sharing via an "awesome" list.
  • Links to social media (Twitter, LinkedIn, Reddit, Telegram) for broader engagement.

Licensing & Compatibility

  • Licensed under MPL-2.0.
  • MPL-2.0 is generally permissive for commercial use and linking with closed-source applications, but requires modifications to the licensed files to be shared under the same license.

Limitations & Caveats

The project is actively developed, and while it offers extensive features, users should be aware of potential for breaking changes in early-stage development. Specific details on enterprise-grade security audits or long-term support commitments are not explicitly detailed in the README.

Health Check
Last commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
113
Issues (30d)
19
Star History
567 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.