Favicon of Logto

Logto

Integrate multi-tenancy, enterprise SSO, and role-based access control into your SaaS or AI applications using simple, fast, and developer-friendly protocols.

Implement a comprehensive authentication infrastructure designed for developers building SaaS and AI applications. This platform provides everything needed to manage user identities and scale to complex, multi-tenant architectures without accumulating security debt.

Take advantage of advanced authentication flows tailored for any use case:

  • Passwordless and social sign-in options via email, SMS, Google, and Apple.
  • Enterprise Single Sign-On (SSO) supporting Okta, Entra, and SAML to onboard corporate clients.
  • Role-Based Access Control (RBAC) for precise permission management.
  • Multi-factor authentication (MFA) including WebAuthn and passkeys.
  • Machine-to-machine (M2M) authentication for securing APIs and microservices.

Rely on an open-source, SOC 2 Type II certified foundation supporting OIDC and OAuth 2.1. With support for over 20 frameworks, you can focus on building your core product while maintaining robust security.

Directory Structure

logto
data
.env
docker-compose.yml

docker-compose.yml

# This compose file is for demonstration only, do not use in prod.

services:
  app:
    depends_on:
      postgres:
        condition: service_healthy
    image: svhd/logto:${TAG-latest}
    entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
    ports:
      - 3001:3001
      - 3002:3002
    environment:
      - TRUST_PROXY_HEADER=1
      - DB_URL=postgres://postgres:p0stgr3s@postgres:5432/logto
      # Mandatory for GitPod to map host env to the container, thus GitPod can dynamically configure the public URL of Logto;
      # Or, you can leverage it for local testing.
      - ENDPOINT
      - ADMIN_ENDPOINT
  postgres:
    image: postgres:17-alpine
    user: postgres
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: p0stgr3s
    healthcheck:
      test: ["CMD-SHELL", "pg_isready"]
      interval: 5s
      timeout: 5s
      retries: 5

.env

POSTGRES_USER: postgres
POSTGRES_PASSWORD: p0stgr3s

Share:

Ad
Favicon

 

  
 

Similar to Logto

Favicon

 

  
  
Favicon

 

  
  
Favicon