MCPcopy
hub / github.com/authgear/authgear-server

github.com/authgear/authgear-server @2026-06-11.0 sqlite

repository ↗ · DeepWiki ↗ · release 2026-06-11.0 ↗
24,813 symbols 85,638 edges 3,769 files 2,245 documented · 9%
README

Authgear Logo

📘 Docs | ☁️ SaaS Cloud | ✨ Demo | 💬 Discord

checks release cloud discord

Authgear: Open source alternative to Auth0 / Clerk / Firebase Auth

Authgear

Authgear is an open-source extensible turnkey solution for all of your consumer authentication needs. Authgear gets you started in 5 minutes with developer-friendly SDKs and a comprehensive portal.

Available for self-hosting and on Authgear Cloud.

With a wide range of out-of-the-box features, it's perfect for SaaS product and multi-apps ecosystem, such as:

  • Passwordless login: Magic-link/OTP with Email, SMS, WhatsApp
  • Passkeys
  • Pre-built signup/login page
  • Pre-built user account settings page
  • Biometric Login on iOS and Android
  • 2FA: TOTP (Google Authenticator, Authy), SMS, Email
  • Integration with analytics, CDP, and drip campaigns
  • Enterprise Security: Audit logs, Bruteforce Protection, Bot Production, Rate Limits
  • Modern authentication and authorization protocols and SSO: OIDC/OAuth 2.0/SAML
  • B2B Enterprise Connections: ADFS, LDAP
  • and more...

Why developers use Authgear

  • Authgear Portal: Web-interface for user management and setting up authentication/authorization configurations
  • Admin API: Powerful GraphQL API to manage resources and all things authentication
  • End-user Experience: Beautiful and tailorable out-of-the-box pre-built authentication flows
  • Enterprise-grade security: MFA, SSO, RBAC, and audit logs.

Contact us:

schedule a demo

Who is using Authgear

We're grateful to the companies listed below for their ongoing support and significant impact on our community. If you want to join the list, email us at hello@authgear.com!

Bupa Cimic Group Hongkong Land K11 MTR

Features and Components

Signup/Login page

Beautiful and customizable signup and login page ready to use, support dark/light modes

| Pre-built signup/login page | |

Passwords, OTP, Passkeys, Biometric

All modern authentication methods that your users love. Add secure authentication for your users without compromising on user experience

| Authgear | |

Multifactor Auth (MFA)

Secure your application with additional authentication factors. TOTP (Google Authenticator, Authy), SMS/ Email OTP, Additional Password

*Adaptive MFA coming soon

| Multifactor Authentication | |

User Management Portal perfect for User Support

GUI for managing user profile, session revocation, analytics, monitoring, logs, setting up authentication and authorization requirements

| Multifactor Authentication | |

Account Settings

Pre-built account settings component for your user to self-manage profile, verify their e-mail, or change their password, etc.

| Plug-and-play account settings | |

Role-based Access Control

Extend access management on your application that Authgear powers using Roles and Groups

| Role-based Access Control | |

Social and Enterprise (OAuth) Connection

Let your user login with Google, Facebook, Apple, WeChat, Linkedin, ADFS, etc with very simple configs.

| OAuth Connections | |

SAML Enterprise SSO

Enable SSO with enterprise softwares using SAML protocol

| SAML Enterprise SSO | |

Passkeys

Easier and more secure anti-phishing alternative to passwords. Support FIDO2 compliant hardware keys and password managers

| Login with Passkeys | |

Webhook and TypeScript Hooks

Get notified when important events such as new user signup happen. Customize and extend Authgear's capabilities with custom logic.

| Webhook and TypeScript Hooks | |

I18n and Email/SMS templates

Localization for different languages and customizable email/SMS templates for authentication flows.

| I18n and Email/SMS Templates |

Components

The repo authgear-server includes the following components of Authgear:

  • Authgear server (the core service)
  • Portal (a web-interface for managing configurations in Authgear projects)
  • AuthUI (a customizable User Interface (UI) for login, user registration, and profile settings pages)
  • Admin API (provides a GraphQL interface for developers to interact with services and data on Authgear)

This repo is the open-source project that powers Authgear's authentication-as-a-service solution. It includes the code for the server, AuthUI, the Portal, and Admin API. You can use it to set up your own self-hosted instance of Authgear service.

Authgear SDK

In addition to Authgear Server, we provide SDKs that developers can use to integrate Authgear into their apps.

These SDKs exist as standalone projects under the following repositories:

Documentation and getting started

The easiest way to start is to sign up at authgear.com for a free account.

✅ Quick Start Guide

Our Quick Start Guide includes tutorials and code examples for popular programming languages, tools, and frameworks like JavaScript, Go, PHP, Next.js, Laravel, Spring, and more.

For more details about getting started with using Authgear, check out the official documentation site at https://docs.authgear.com.

Also, you can take a look at our example projects repos that demonstrate how to use Authgear.

Installation and setup

The Authgear Server project allows developers to set up their own instance of Authgear.

We've provided detailed instructions on how to set up a self-hosted instance of Authgear here: https://docs.authgear.com/deployment/local-development/local

Helm Chart is the recommended way to deploy Authgear on Kubernetes for production usage

How to contribute

Please refer to CONTRIBUTING.md if you need instructions on contributing to the development of Authgear Server.

If you use an AI coding agent (e.g. Claude Code) for first-time setup, run the bootstrap-local-dev skill in this repo (.claude/skills/bootstrap-local-dev/) — it walks the agent through the same steps in CONTRIBUTING.md and verifies each one.

Contributors

Currently there are 42 contributors for this repository. Feel free to contribute!

Made with contrib.rocks.

Credits

  • Free email provider domains list provided by: https://gist.github.com/tbrianjones/5992856/
  • This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com

Part of Skymarkers. We 😻 open-source.

Extension points exported contracts — how you extend this code

CookieManager (Interface)
go:generate go tool mockgen -source=cookie.go -destination=cookie_mock_test.go -package webapp [8 implementers]
pkg/auth/webapp/cookie.go
PreparedStatementsHandle (Interface)
PreparedStatementsHandle prepares and caches query. [15 implementers]
pkg/lib/infra/db/handle.go
PlanServiceGlobalDatabase (Interface)
Narrow interfaces [7 implementers]
pkg/siteadmin/service/plan.go
AMRGetter (Interface)
(no doc) [8 implementers]
pkg/latte/amr.go
Cause (Interface)
(no doc) [237 implementers]
pkg/api/apierrors/error.go
ImagesStore (Interface)
(no doc) [73 implementers]
pkg/images/handler/post.go
AuditServiceAppService (Interface)
(no doc) [121 implementers]
pkg/portal/service/audit.go
CSPNoncePerSessionCookieManager (Interface)
(no doc) [8 implementers]
pkg/util/httputil/csp.go

Core symbols most depended-on inside this repo

Log
called by 1123
pkg/portal/graphql/context.go
UnwrapConn
called by 1025
pkg/util/databasesqlwrapper/conn.go
WrapConn
called by 1025
pkg/util/databasesqlwrapper/conn.go
String
called by 1019
pkg/util/httputil/csp.go
Set
called by 686
pkg/lib/infra/redis/redis_6_0.go
New
called by 559
pkg/lib/interaction/context.go
Add
called by 549
pkg/util/otelutil/metric.go
Call
called by 351
pkg/lib/accountmigration/hook.go

Shape

Method 12,293
Function 5,900
Struct 3,432
Interface 2,510
TypeAlias 340
Class 177
FuncType 92
Enum 69

Languages

Go86%
TypeScript14%
Python1%

Modules by API surface

pkg/util/databasesqlwrapper/rows.go443 symbols
pkg/util/databasesqlwrapper/rows_test.go417 symbols
portal/src/types.ts174 symbols
pkg/lib/facade/coordinator.go156 symbols
pkg/auth/wire_gen.go156 symbols
pkg/lib/authn/identity/service/service_mock_test.go152 symbols
pkg/lib/oauth/handler/handler_token_mock_test.go146 symbols
pkg/lib/authenticationflow/dependencies.go132 symbols
pkg/admin/graphql/context.go129 symbols
pkg/lib/config/authentication_flow.go124 symbols
pkg/auth/wire_handler.go123 symbols
pkg/lib/interaction/context.go119 symbols

Dependencies from manifests, versioned

cel.dev/exprv0.25.1 · 1×
cloud.google.com/gov0.121.4 · 1×
cloud.google.com/go/authv0.16.3 · 1×
cloud.google.com/go/auth/oauth2adaptv0.2.8 · 1×
cloud.google.com/go/compute/metadatav0.9.0 · 1×
cloud.google.com/go/monitoringv1.24.2 · 1×
cloud.google.com/go/storagev1.56.0 · 1×
github.com/Azure/azure-pipeline-gov0.2.3 · 1×
github.com/Azure/azure-storage-blob-gov0.15.0 · 1×
github.com/Azure/go-ntlmsspv0.1.1 · 1×
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcpv1.31.0 · 1×

Datastores touched

postgresDatabase · 1 repos
db1Database · 1 repos

For agents

$ claude mcp add authgear-server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact