# logto | Logto | Knowledge Base | Instagit

🧑‍🚀 Authentication and authorization infrastructure for SaaS and AI apps, built on OIDC and OAuth 2.1 with multi-tenancy, SSO, and RBAC.

GitHub Stars: 13k

Repository: https://github.com/logto-io/logto

---

## Articles

### [Customizing Logto: 8 Core Entry Points for Extending Authentication Behavior](/logto-io/logto/customize-logto-behavior-entry-points)

Explore 8 core entry points to customize Logto's authentication behavior. Extend flows and UI without altering Logto's source code. Learn more at logto-io/logto.

- Tags: how-to-guide
- Published: 2026-07-06

### [How Logto Handles Secrets Management: A Deep Dive into the Secret Vault Architecture](/logto-io/logto/logto-secrets-management)

Discover how Logto handles secrets management with its Secret Vault architecture leveraging dual encryption layers AES-256-GCM and PostgreSQL for secure, efficient storage.

- Tags: deep-dive
- Published: 2026-07-06

### [Logto Package Versions: Implications and Best Practices for Version Management](/logto-io/logto/logto-package-versions-implications)

Manage Logto package versions effectively in your monorepo to prevent API compatibility failures, missing features, and type errors. Discover best practices for version management.

- Tags: best-practices
- Published: 2026-07-06

### [Is Logto Compatible with OAuth 2.0 and OpenID Connect?](/logto-io/logto/logto-oauth-openid-connect-compatibility)

Logto integrates seamlessly with OAuth 2.1 and OpenID Connect 1.0. Discover Logto's standard endpoints and grant types for full compatibility.

- Tags: qa
- Published: 2026-07-06

### [How Logto Implements API Access Control: Token-Based RBAC and Scope Verification](/logto-io/logto/logto-api-access-control-management)

Learn how Logto implements API access control using token-based RBAC and scope verification. Secure your APIs with Logto's OIDC compliant system.

- Tags: architecture
- Published: 2026-07-06

### [The Role of JWT in Logto's Security Model: OIDC Implementation and Best Practices](/logto-io/logto/logto-jwt-security-model-role)

Discover how Logto leverages JWTs for secure, stateless authentication with OIDC. Learn about RSA-signed tokens, customizable claims, and JWKS validation for robust security.

- Tags: deep-dive
- Published: 2026-07-06

### [Typical Use Cases for Logto: A Complete Guide to Authentication Scenarios](/logto-io/logto/logto-typical-use-cases)

Discover Logto's typical use cases in SaaS, AI, and agent platforms. Learn how to implement secure, scalable authentication with ease. Get your complete guide now!

- Tags: use-cases
- Published: 2026-07-06

### [How to Extend Logto's Functionality: A Developer's Guide to Custom Connectors and Inline Hooks](/logto-io/logto/extend-logto-functionality)

Extend Logto's functionality with custom connectors or inline hooks. Build self-contained Node.js packages and JavaScript functions to customize authentication without altering core code.

- Tags: how-to-guide
- Published: 2026-07-06

### [How Logto Manages User Data: Architecture and Implementation Guide](/logto-io/logto/logto-user-data-management)

Discover how Logto manages user data with its layered architecture. Learn about schema definitions, Zod validation, and centralized user lifecycle management for type-safe operations. Get the implementation guide.

- Tags: architecture
- Published: 2026-07-06

### [Does Logto Support Different Database Backends? PostgreSQL-Only Architecture Explained](/logto-io/logto/logto-database-backends-support)

Logto exclusively supports PostgreSQL databases. Discover why this architecture is chosen and how it impacts your setup.

- Tags: deep-dive
- Published: 2026-07-06

### [How to Integrate Logto with Your Application: A Complete Implementation Guide](/logto-io/logto/integrate-logto-with-application)

Learn how to integrate Logto with your application. This guide covers deploying Logto, configuring your app, and implementing OpenID Connect for seamless authentication.

- Tags: how-to-guide
- Published: 2026-07-06

### [Understanding the Core Components of the Logto Architecture](/logto-io/logto/logto-core-architecture-components)

Explore the core components of the Logto architecture, an open-source identity platform. Discover its OIDC/OAuth 2.1 compliance, multi-tenancy, and pluggable connectors.

- Tags: architecture
- Published: 2026-07-06

### [Logto Authentication and Authorization Flows: A Deep Dive into OIDC Implementation](/logto-io/logto/logto-authentication-authorization-flows)

Explore how Logto implements OIDC and OAuth 2.0 for secure authentication and authorization. Understand its layered architecture for robust flows.

- Tags: deep-dive
- Published: 2026-07-06

### [Where to Find Environment Variable Definitions for Logto: A Complete Guide](/logto-io/logto/logto-environment-variable-definitions)

Locate Logto environment variable definitions in GlobalValues.ts for server-side settings and vite.config.ts for client-side configurations. Find all your Logto env var details here.

- Tags: how-to-guide
- Published: 2026-07-06

### [Architectural Overview of Logto: Monorepo Structure and Component Breakdown](/logto-io/logto/logto-project-architectural-overview)

Explore Logto's monorepo architecture. Understand its Koa.js OIDC backend, React UIs, PostgreSQL database, and pluggable connectors for seamless authentication.

- Tags: architecture
- Published: 2026-07-06

### [Key Libraries and Packages Used in the Logto Open-Source Identity Platform](/logto-io/logto/logto-key-libraries-and-packages)

Discover the core Node.js libraries and packages powering the Logto open-source identity platform. Explore Koa, oidc-provider, PostgreSQL, Redis, and more.

- Tags: internals
- Published: 2026-07-06

### [How Logto Is Configured Using Environment Variables: Complete Developer Guide](/logto-io/logto/logto-environment-variable-configuration)

Learn how to configure Logto using environment variables. This guide covers database connections, endpoints, and feature flags for your core service and CLI.

- Tags: how-to-guide
- Published: 2026-07-06

### [How the Logto Account Center Works: Architecture, API, and Front-End Integration](/logto-io/logto/logto-account-center-functionality)

Explore the Logto Account Center architecture, APIs, and front-end integration. Learn how it empowers users to manage profiles, passwords, and linked identities.

- Tags: architecture
- Published: 2026-07-05

### [How to Manage API Resources and Scopes in Logto: A Complete Guide](/logto-io/logto/manage-logto-api-resources-scopes)

Learn to effectively manage API resources and scopes in Logto. Understand audiences and granular permissions using the Management API or Admin Console for robust security. Get the complete guide now.

- Tags: how-to-guide
- Published: 2026-07-05

### [How Logto's Verification Code System Works: Architecture and Implementation](/logto-io/logto/logto-verification-code-system-explained)

Discover how Logto's verification code system works. Learn about its secure passcode generation, rate limiting with Sentinel, and tenant policy validation for enhanced security.

- Tags: architecture
- Published: 2026-07-05

### [How to Troubleshoot Common Authentication Issues in Logto: A Complete Developer’s Guide](/logto-io/logto/troubleshoot-logto-authentication-issues)

Troubleshoot common Logto authentication issues. Learn to fix missing interaction states, invalid tokens, and SSO connector problems with this developer guide.

- Tags: how-to-guide
- Published: 2026-07-05

### [Best Practices for Securing Your Logto Deployment: A Complete Production Guide](/logto-io/logto/best-practices-securing-logto-deployment)

Secure your Logto deployment with production best practices. Implement TLS, Helmet, RLS, secret rotation, and rate limiting for robust authentication.

- Tags: best-practices
- Published: 2026-07-05

### [How Logto's Model Context Protocol Integration Works: A Technical Deep Dive](/logto-io/logto/logto-model-context-protocol-integration-details)

Explore Logto's Model Context Protocol integration. Discover how AI agents pass structured context during OIDC authentication for pre-scoped tokens, improving efficiency.

- Tags: deep-dive
- Published: 2026-07-05

### [How to Integrate Logto with React/Next.js Applications: Complete SDK Guide](/logto-io/logto/integrate-logto-with-react-nextjs)

Integrate Logto with React/Next.js apps using our SDK. Simplify authentication, token refresh, and session management. Get started with our complete guide today.

- Tags: sdk-guide
- Published: 2026-07-05

### [How the Logto Consent Flow Works: OAuth 2.0 and OpenID Connect Implementation](/logto-io/logto/logto-consent-flow-explained)

Explore the Logto consent flow, a precise implementation of OAuth 2.0 and OpenID Connect. Understand how Logto manages user permissions and data access with clear layers for consent handling.

- Tags: deep-dive
- Published: 2026-07-05

### [How to Configure Webhooks in Logto: Complete Management API Guide](/logto-io/logto/configure-logto-webhooks-tutorial)

Configure Logto webhooks for real-time event notifications using the Management API. Learn to send event data reliably to your HTTP endpoints with this comprehensive guide.

- Tags: how-to-guide
- Published: 2026-07-05

### [How Logto's Sentinel System Handles Rate Limiting and Brute-Force Protection](/logto-io/logto/logto-sentinel-system-rate-limiting-mechanisms)

Discover how Logto's sentinel system uses rate limiting and brute-force protection to secure your applications. Learn about its database-backed, policy-driven approach.

- Tags: internals
- Published: 2026-07-05

### [How to Implement Passwordless Authentication in Logto: Complete Developer Guide](/logto-io/logto/implement-logto-passwordless-authentication)

Learn to implement passwordless authentication in Logto using SMS or email verification codes for secure, modern user experiences. Follow our developer guide today

- Tags: how-to-guide
- Published: 2026-07-05

### [How Logto's Database Schema and Alteration System Works: A Deep Dive](/logto-io/logto/logto-database-schema-alterations-explained)

Explore Logto's database schema and alteration system. Learn how code generation creates TypeScript types and Zod validators, with timestamped scripts managing migrations for robust data management.

- Tags: deep-dive
- Published: 2026-07-05

### [How to Use the Logto Management API: Complete Guide with TypeScript SDK](/logto-io/logto/use-logto-management-api-guide)

Master the Logto Management API with our comprehensive TypeScript SDK guide. Securely manage your users and applications through type-safe requests and SDK-handled authentication. Get started today.

- Tags: how-to-guide
- Published: 2026-07-05

### [How Sign-In Experience Customization Works in Logto: Console-to-Experience Flow Explained](/logto-io/logto/logto-sign-in-experience-customization-guide)

Learn how Logto customization works for your sign-in experience. Fetch configuration from the backend and see instant updates in the Experience SPA without reloads.

- Tags: deep-dive
- Published: 2026-07-05

### [How to Set Up Custom Domains in Logto: Complete Configuration Guide](/logto-io/logto/setup-logto-custom-domains)

Easily set up custom domains in Logto. This guide shows you how to add your domain, verify ownership, and update endpoints for a branded authentication experience. Get started now.

- Tags: how-to-guide
- Published: 2026-07-05

### [Differences Between Application Types in Logto: SPA, Traditional, Native, and M2M Explained](/logto-io/logto/logto-application-types-comparison-spa-traditional-native-m2m)

Understand Logto application types like SPA, Traditional, Native, and M2M. Learn which OAuth flows and security profiles fit your app for seamless integration.

- Tags: deep-dive
- Published: 2026-07-05

### [How Logto Handles User Sessions and Token Refresh: OIDC Implementation Guide](/logto-io/logto/logto-user-sessions-token-refresh-handling)

Learn how Logto manages user sessions with sign-in context and implements OIDC token refresh. Explore custom grants, validation, and token rotation for secure access.

- Tags: deep-dive
- Published: 2026-07-05

### [How to Use Inline Hooks for Custom Authentication Flows in Logto](/logto-io/logto/logto-inline-hooks-custom-auth-flows)

Learn to customize Logto authentication flows using inline hooks. Execute sandboxed JavaScript snippets directly within the authentication pipeline for flexible sign-ins without microservices.

- Tags: how-to-guide
- Published: 2026-07-05

### [How to Customize JWT Tokens Using the JWT Customizer in Logto](/logto-io/logto/customize-logto-jwt-tokens-jwt-customizer)

Customize JWT tokens in Logto by writing JavaScript to modify claims inject user data or deny access during token issuance Learn how to implement custom business logic

- Tags: how-to-guide
- Published: 2026-07-05

### [How to Create Custom Connectors for Social Login in Logto: A Complete Guide](/logto-io/logto/create-logto-custom-social-login-connectors)

Learn how to create custom connectors for social login in Logto. This complete guide walks you through implementing the SocialConnector interface and integrating with Logto seamlessly.

- Tags: how-to-guide
- Published: 2026-07-05

### [How Does MFA Work in Logto? TOTP, WebAuthn, and Backup Codes Explained](/logto-io/logto/logto-mfa-methods-totp-webauthn-backup-codes)

Discover how Logto handles MFA with TOTP, WebAuthn, and backup codes. Learn about secure encrypted records and robust API validation for enhanced security.

- Tags: how-to-guide
- Published: 2026-07-05

### [How to Implement RBAC with Roles and Scopes in Logto](/logto-io/logto/implement-logto-rbac-roles-scopes)

Easily implement RBAC with roles and scopes in Logto. Discover how Logto's relational tables and OAuth scopes grant granular user permissions for enhanced security.

- Tags: how-to-guide
- Published: 2026-07-05

### [How to Configure Enterprise SSO with SAML in Logto: A Complete Technical Guide](/logto-io/logto/configure-logto-enterprise-sso-saml)

Configure enterprise SSO with SAML in Logto using the REST API, expose SP metadata to your IdP, and handle SAML assertions. This guide simplifies SAML integration.

- Tags: how-to-guide
- Published: 2026-07-05

### [How Logto Implements Multi-Tenancy with Organizations](/logto-io/logto/logto-multi-tenancy-organizations-explained)

Discover how Logto implements multi-tenancy with organizations by modeling tenants as special organizations. Learn about their unique naming convention for seamless integration.

- Tags: how-to-guide
- Published: 2026-07-05

### [Configuring Logto Verification Records and CAPTCHA Providers: A Complete Guide](/logto-io/logto/configuring-logto-verification-records-and-captcha-providers)

Master configuring Logto verification records and CAPTCHA providers reCAPTCHA Enterprise and Turnstile. Secure your authentication flow with this comprehensive guide.

- Tags: how-to-guide
- Published: 2026-07-04

### [Monitoring Tenant Usage and Daily Active Users in Logto: A Complete Technical Guide](/logto-io/logto/monitoring-tenant-usage-and-daily-active-users-in-logto)

Monitor tenant usage and daily active users in Logto using sign-in event aggregation and the Dashboard API. Learn how Logto enforces limits and tracks key metrics in this technical guide.

- Tags: how-to-guide
- Published: 2026-07-04

### [How to Set Up API Authentication with Access Tokens in Logto: A Complete Guide](/logto-io/logto/how-to-set-up-api-authentication-with-access-tokens-in-logto)

Set up API authentication with access tokens in Logto. Logto's SDK streamlines M2M authentication using OAuth 2.0 and automatically caches and refreshes tokens before expiry for seamless integration.

- Tags: how-to-guide
- Published: 2026-07-04

### [Implementing User Invitation Workflows with Logto: A Complete Developer's Guide](/logto-io/logto/implementing-user-invitation-workflows-with-logto)

Learn to implement user invitation workflows with Logto using magic links and a secure process. This guide covers database schemas, REST APIs, and React components for seamless integration.

- Tags: how-to-guide
- Published: 2026-07-04

### [Customizing the Logto Sign-In Experience and UI: A Complete Guide to Runtime Configuration](/logto-io/logto/customizing-the-logto-sign-in-experience-and-ui)

Customize the Logto sign-in experience and UI with runtime configuration. Easily update branding, connectors, and security policies without code changes. Learn how in this complete guide.

- Tags: how-to-guide
- Published: 2026-07-04

### [Configuring Custom Domains for Tenant Isolation in Logto](/logto-io/logto/configuring-custom-domains-for-tenant-isolation-in-logto)

Learn to configure custom domains for tenant isolation in Logto. Map unique domains to tenant IDs for secure data routing and caching with Redis.

- Tags: how-to-guide
- Published: 2026-07-04

### [Setting up Rate Limiting for API Protection with Logto: Implementation Guide](/logto-io/logto/setting-up-rate-limiting-for-api-protection-with-logto)

Implement API protection with Logto's rate limiting. Discover how to set up the MessageRateGuard sentinel for secure outbound messaging and prevent abuse.

- Tags: how-to-guide
- Published: 2026-07-04

### [Implementing Audit Logging with Logto Sentinel Activities](/logto-io/logto/implementing-audit-logging-with-logto-sentinel-activities)

Implement audit logging with Logto sentinel activities. Securely record security events in PostgreSQL, creating immutable audit trails for compliance and threat analysis.

- Tags: how-to-guide
- Published: 2026-07-04

### [Securely Managing Application Secrets in Logto: The Complete Guide to KEK and DEK Encryption](/logto-io/logto/securely-managing-application-secrets-in-logto)

Learn to securely manage application secrets in Logto. Understand KEK and DEK encryption to protect OAuth tokens and sensitive data at rest.

- Tags: how-to-guide
- Published: 2026-07-04

### [Configuring Logto API Resources and Scopes for Authorization](/logto-io/logto/configuring-logto-api-resources-and-scopes-for-authorization)

Learn to configure Logto API resources and scopes for robust OAuth 2.0 authorization. Define protected APIs and granular permissions for your applications.

- Tags: how-to-guide
- Published: 2026-07-04

### [Implementing Passwordless Authentication with Passcodes in Logto: A Complete Technical Guide](/logto-io/logto/implementing-passwordless-authentication-with-passcodes-using-logto)

Implement passwordless authentication with passcodes in Logto. This guide shows how Logto securely delivers and verifies 6-digit passcodes via email or SMS for enhanced user access.

- Tags: how-to-guide
- Published: 2026-07-04

### [Managing Email Templates for Transactional Emails in Logto: Complete Implementation Guide](/logto-io/logto/managing-email-templates-for-transactional-emails-in-logto)

Learn to manage transactional email templates in Logto using the Management API. Implement multilingual variants with Handlebars for dynamic content and simplify email delivery.

- Tags: how-to-guide
- Published: 2026-07-04

### [Configuring Social Connectors for Social Login with Logto: A Complete Implementation Guide](/logto-io/logto/configuring-social-connectors-for-social-login-with-logto)

Integrate social login effortlessly with Logto's social connectors. This guide details implementation using OIDC/OAuth2 for seamless user authentication with Google, GitHub, and more.

- Tags: how-to-guide
- Published: 2026-07-04

### [How to Set Up Webhooks for Authentication Events in Logto: A Complete Guide](/logto-io/logto/how-to-set-up-webhooks-for-authentication-events-in-logto)

Learn to set up webhooks for authentication events in Logto. Get real-time HTTP callbacks for PostSignIn, PostRegister, and PostResetPassword events via Admin Console or API.

- Tags: how-to-guide
- Published: 2026-07-04

### [Using Custom Profile Fields in Logto for Extended User Data](/logto-io/logto/using-custom-profile-fields-in-logto-for-extended-user-data)

Extend user profiles in Logto with custom fields defined via the admin console or API. Collect extended user data easily during sign-up.

- Tags: how-to-guide
- Published: 2026-07-04

### [Managing User Sessions and OIDC Session Extensions with Logto: A Complete Guide](/logto-io/logto/managing-user-sessions-and-oidc-session-extensions-with-logto)

Master OIDC session extensions with Logto. Learn how Logto enhances standard OIDC sessions using a dedicated table for comprehensive session management and token customization via the Management API.

- Tags: how-to-guide
- Published: 2026-07-04

### [Configuring SAML Applications for Enterprise SSO in Logto: The Complete Technical Guide](/logto-io/logto/configuring-saml-applications-for-enterprise-sso-in-logto)

Configure SAML applications for enterprise SSO in Logto. This technical guide details Logto's SAML implementation, including metadata, settings, and endpoint handling.

- Tags: how-to-guide
- Published: 2026-07-04

### [Implementing Machine-to-Machine (M2M) Authentication with Logto Client Credentials: A Complete Guide](/logto-io/logto/implementing-machine-to-machine-authentication-with-logto-client-credentials)

Master M2M authentication with Logto client credentials. Learn how Logto's OAuth 2.0 grant enables secure backend service token access and caching for seamless integration.

- Tags: how-to-guide
- Published: 2026-07-04

### [Using Logto Token Exchange Grants for Delegated Authentication](/logto-io/logto/using-logto-token-exchange-grants-for-delegated-authentication)

Leverage Logto's OAuth 2.0 Token Exchange grant for secure delegated authentication. Securely exchange tokens for downstream services by enabling the token exchange feature.

- Tags: how-to-guide
- Published: 2026-07-04

### [How to Set Up Multi-Factor Authentication (MFA) for Organizations in Logto](/logto-io/logto/how-to-set-up-multi-factor-authentication-for-organizations-in-logto)

Secure your organization with Logto's multi-factor authentication MFA. Learn how to set up MFA for organization members easily and protect your accounts.

- Tags: how-to-guide
- Published: 2026-07-04

### [Implementing Just-In-Time (JIT) Provisioning with Logto and Email Domains](/logto-io/logto/implementing-just-in-time-provisioning-with-logto-and-email-domains)

Implement Just-In-Time JIT provisioning with Logto and email domains. Automatically add users and assign roles on first sign-in using Logto's REST API and configuration.

- Tags: how-to-guide
- Published: 2026-07-04

### [Configuring SSO Connectors for Enterprise Identity Providers with Logto: A Complete Technical Guide](/logto-io/logto/configuring-sso-connectors-for-enterprise-identity-providers-with-logto)

Configure enterprise SSO connectors with Logto for OIDC and SAML providers. Learn about JIT provisioning and encrypted token storage in this technical guide.

- Tags: how-to-guide
- Published: 2026-07-04

### [Setting Up RBAC with Logto Organization Roles and Scopes: Complete Implementation Guide](/logto-io/logto/setting-up-rbac-with-logto-organization-roles-and-scopes)

Implement Logto organization roles and scopes for granular RBAC. Discover how Logto's relational tables and OIDC scopes enable fine-grained access control. Read the complete guide now.

- Tags: how-to-guide
- Published: 2026-07-04

### [How to Implement Multi-Tenancy with Logto Organizations: A Complete Guide](/logto-io/logto/how-to-implement-multi-tenancy-with-logto-organizations)

Master multi-tenancy with Logto organizations. Learn to implement tenant isolation using organization helpers and access tokens for secure, scalable applications.

- Tags: how-to-guide
- Published: 2026-07-04

### [How to Contribute to the Logto Project: A Complete Developer's Guide](/logto-io/logto/contribute-to-logto-project)

Learn how to contribute to the Logto project. Discover a step-by-step guide covering monorepo cloning, dependency installation, database setup, and submitting pull requests to the Logto GitHub repository.

- Tags: how-to-guide
- Published: 2026-07-03

### [Logto API Endpoints: Complete Reference for the Open-Source Identity Platform](/logto-io/logto/logto-api-endpoints)

Explore the Logto API endpoints for OIDC authentication, Management API, and UI configuration. Access a complete reference for this open-source identity platform.

- Tags: api-reference
- Published: 2026-07-03

### [How to Use Logto for SSO: Enterprise Single Sign-On Implementation Guide](/logto-io/logto/use-logto-for-sso)

Implement enterprise SSO with Logto using OpenID Connect and SAML. Streamline user authentication with automatic sign-on via external identity providers and just-in-time provisioning.

- Tags: how-to-guide
- Published: 2026-07-03

### [How to Manage Logto Users: Complete API and Database Guide](/logto-io/logto/manage-logto-users)

Learn to manage Logto users effectively using the comprehensive API and database guide. Explore user profiles, passwords, and custom data management with JWT authentication.

- Tags: api-reference
- Published: 2026-07-03

### [How to Integrate Logto with Vue.js Applications: A Complete Implementation Guide](/logto-io/logto/integrate-logto-with-vuejs)

Integrate Logto with Vue.js seamlessly. Follow our guide to install the SDK, initialize the plugin, handle sign-in callbacks, and manage auth state for a secure user experience.

- Tags: how-to-guide
- Published: 2026-07-03

### [How to Integrate Logto with React Applications: Complete Implementation Guide](/logto-io/logto/integrate-logto-with-react)

Integrate Logto with React applications using the official SDK. Learn how to set up the LogtoProvider and use the useLogto hook for secure authentication flows.

- Tags: how-to-guide
- Published: 2026-07-03

### [How to Backup Logto Data: Complete PostgreSQL and Storage Guide](/logto-io/logto/backup-logto-data)

Learn how to backup Logto data. This guide covers PostgreSQL dumps, archiving storage directories, and preserving essential environment variables for data recovery.

- Tags: how-to-guide
- Published: 2026-07-03

### [How to Connect Logto to a SQLite Database](/logto-io/logto/connect-logto-to-sqlite)

Logto requires PostgreSQL for data storage and does not support SQLite. Learn why you cannot configure a SQLite connection in the DB_URL environment variable.

- Tags: how-to-guide
- Published: 2026-07-03

### [How to Connect Logto to a MySQL Database (and Why It's Not Supported)](/logto-io/logto/connect-logto-to-mysql)

 Logto does not support MySQL it exclusively requires PostgreSQL from the DB_URL environment variable Learn why and how to configure your database connection

- Tags: how-to-guide
- Published: 2026-07-03

### [How to Connect Logto to a PostgreSQL Database: Configuration Guide](/logto-io/logto/connect-logto-to-postgresql)

Connect Logto to PostgreSQL easily. Learn how to configure Logto with a PostgreSQL database using the DB_URL environment variable and seed the database schema for seamless integration.

- Tags: how-to-guide
- Published: 2026-07-03

### [What Database Types Does Logto Support?](/logto-io/logto/logto-supported-database-types)

Discover if Logto supports your database. Logto exclusively supports PostgreSQL versions 14.0 and higher for robust identity management.

- Tags: api-reference
- Published: 2026-07-03

### [How to Initialize Logto with a Database: Complete Setup Guide](/logto-io/logto/initialize-logto-with-database)

Initialize Logto with a database easily. Set DB_URL and run 'pnpm cli db seed' to create schemas and roles for your Logto server setup. Get the guide now.

- Tags: how-to-guide
- Published: 2026-07-03

### [How to Install Logto Docker: Complete Setup Guide](/logto-io/logto/install-logto-docker)

Install Logto Docker easily with our complete setup guide. Clone the repository and run a single command to get Logto and its admin console running on ports 3001 and 3002.

- Tags: how-to-guide
- Published: 2026-07-03

### [Requirements for Running Logto: Docker, Node.js, and PostgreSQL Setup Guide](/logto-io/logto/requirements-for-running-logto)

Learn the requirements for running Logto on-premise. Discover essential setup details for Docker, Node.js, and PostgreSQL to get Logto up and running quickly.

- Tags: how-to-guide
- Published: 2026-07-03

### [How to Change Logto Configuration: Environment Variables and Tenant Settings](/logto-io/logto/change-logto-configuration)

Learn how to change Logto configuration using environment variables for static settings or PostgreSQL tenant updates via CLI/API for dynamic runtime adjustments. Master Logto configuration today.

- Tags: how-to-guide
- Published: 2026-07-03

### [What Is the Default Logto Configuration?](/logto-io/logto/default-logto-configuration)

Discover the default Logto configuration including session TTL, refresh-token rotation, admin console flags, and ID token claims for secure and efficient user authentication.

- Tags: getting-started
- Published: 2026-07-02

### [Benefits of Self-Hosting Logto: Complete Infrastructure Control and Data Sovereignty](/logto-io/logto/benefits-of-self-hosting-logto)

Self-host Logto for complete infrastructure control and data sovereignty. Enjoy customizable security, full feature parity, and avoid vendor lock-in. Run Logto entirely within your own environment.

- Tags: benefits
- Published: 2026-07-02

### [What is Logto? A Complete Guide to the Open-Source Identity Platform](/logto-io/logto/what-is-logto)

Discover Logto, the open-source identity platform offering a full OIDC/OAuth 2.1/SAML stack with multi-tenancy and type-safe SDKs. Secure your SaaS and AI apps today.

- Tags: getting-started
- Published: 2026-07-02

### [How to Migrate from Auth0 to Logto: Complete OIDC and User Import Guide](/logto-io/logto/how-to-migrate-from-auth0-to-logto)

Migrate from Auth0 to Logto seamlessly. Redirect OIDC clients and import users with existing passwords via the Management API. Avoid forced resets and simplify your authentication.

- Tags: migration-guide
- Published: 2026-06-30

### [Logto Security Best Practices: Enterprise-Grade Hardening in the Source Code](/logto-io/logto/what-are-logtos-security-best-practices)

Discover Logto security best practices for enterprise-grade hardening. Learn about defense-in-depth, HTTP headers, MFA, token management, and rate limiting for robust application security.

- Tags: best-practices
- Published: 2026-06-30

### [Logto Authentication Flows: PKCE, SAML, Passkeys, and MFA Explained](/logto-io/logto/what-are-the-logto-authentication-flows-supported)

Explore Logto authentication flows including PKCE, SAML, Passkeys, and MFA. Learn how Logto secures your applications with flexible and robust sign-in experiences.

- Tags: deep-dive
- Published: 2026-06-30

### [How to Connect Logto to a Custom Database: Complete Implementation Guide](/logto-io/logto/how-to-connect-logto-to-a-custom-database)

Learn how to connect Logto to a custom database. Easily set DB_URL for PostgreSQL or implement a custom OIDC adapter for MySQL, MongoDB, and more. Get the complete implementation guide today.

- Tags: how-to-guide
- Published: 2026-06-30

### [How to Deploy Logto to Production: A Complete Self-Hosting Guide](/logto-io/logto/how-to-deploy-logto-to-production)

Deploy Logto to production with this comprehensive self-hosting guide. Learn to configure environment variables, run the Docker Compose stack with PostgreSQL, and set up TLS for secure access.

- Tags: how-to-guide
- Published: 2026-06-30

### [Complete Guide to Logto Environment Variables: Core, CLI, and Frontend Configuration](/logto-io/logto/what-are-the-logto-environment-variables)

Master Logto environment variables for core, CLI, and frontend. Configure database connections, API endpoints, TLS, flags and integrations to streamline your Logto setup.

- Tags: how-to-guide
- Published: 2026-06-30

### [How to Customize the Logto UI: A Complete Guide to Custom Sign-In Experiences](/logto-io/logto/how-to-customize-the-logto-ui)

Learn how to customize the Logto UI and create unique sign-in experiences by uploading custom HTML, CSS, and JavaScript. Effortlessly replace the default interface.

- Tags: how-to-guide
- Published: 2026-06-30

### [How to Set Up Logto SSO for Enterprise: OIDC and SAML Configuration Guide](/logto-io/logto/how-to-set-up-logto-sso-for-enterprise)

Master Logto SSO for enterprises with our guide to OIDC and SAML configuration. Secure your applications with efficient domain-based authentication and JIT provisioning.

- Tags: how-to-guide
- Published: 2026-06-30

### [How to Manage Logto Applications via API: Complete CRUD and Configuration Guide](/logto-io/logto/how-to-manage-logto-applications-via-api)

Master Logto application management with our API guide. Learn CRUD operations, roles, secrets, and custom domains for seamless programmatic control.

- Tags: how-to-guide
- Published: 2026-06-30

### [Logto API for Managing Users: Complete Management API Reference](/logto-io/logto/what-is-the-logto-api-for-managing-users)

Explore the Logto Management API a powerful M2M REST API for user CRUD operations role assignments and session management secured with OAuth 2.0

- Tags: api-reference
- Published: 2026-06-30

### [How to Use the Logto SDK for Web Development: A Complete Integration Guide](/logto-io/logto/how-to-use-logto-sdk-for-web-development)

Integrate Logto SDK into your web app for seamless OIDC authentication. Our guide simplifies authorization, token storage, and session management with minimal configuration.

- Tags: how-to-guide
- Published: 2026-06-30

### [How to Run Logto Locally: Docker Compose and Node.js Setup Guide](/logto-io/logto/how-to-run-logto-locally)

Run Logto locally effortlessly. Follow our guide for Docker Compose or Node.js setup, connecting to PostgreSQL and seeding your database for a seamless development experience.

- Tags: how-to-guide
- Published: 2026-06-30

### [What Are the Prerequisites for Logto Development? Complete Setup Guide](/logto-io/logto/what-are-the-prerequisites-for-logto-development)

Learn the essential prerequisites for Logto development. Set up your environment with Docker, Node.js, pnpm, PostgreSQL, Git, and rsync for a smooth local development experience.

- Tags: getting-started
- Published: 2026-06-30

