Authgear server
Open source Auth0/Clerk/Firebase alternative. Passkeys, SSO, MFA, passwordless, biometric login. Self-hosted or cloud. Enterprise-ready for SaaS & mobile apps
[](https://discord.gg/Kdn5vcYwAS) The project is written primarily in Go, distributed under the Apache License 2.0 license, first published in 2020. It has gained significant community traction with 1,843 stars and 116 forks on GitHub. Key topics include: 2fa, auth0, authentication, biometric, clerk-alternative.
<a href="https://www.authgear.com/?utm_source=github&utm_medium=readme&utm_campaign=logo"><img src="https://raw.githubusercontent.com/authgear/.github/main/profile/authgear-logo-github.svg" width="400" alt="Authgear Logo">
</a>
Authgear: Open source alternative to Auth0 / Clerk / Firebase Auth
<img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/banner.jpg" width="800" alt="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.
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!
<table> <tr> <td> <a href="https://www.bupa.com.hk/"> <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/adopters/bupa.png" alt="Bupa"></a></td> <td><a href="https://www.cimic.com.au/"><img src="https://raw.githubusercontent.com/authgear/.github/main/meta/adopters/cimic-group.png" alt="Cimic Group"></a></td> <td><a href="https://www.hkland.com"><img src="https://raw.githubusercontent.com/authgear/.github/main/meta/adopters/hongkong-land.png" alt="Hongkong Land"></a></td> <td><a href="https://www.k11.com/"><img src="https://raw.githubusercontent.com/authgear/.github/main/meta/adopters/k11.png" alt="K11"></a></td> <td><a href="https://www.mtr.com.hk/"><img src="https://raw.githubusercontent.com/authgear/.github/main/meta/adopters/mtr.png" alt="MTR"></a></td> </tr> </table>Features and Components
| <h3>Signup/Login page</h3><p>Beautiful and customizable signup and login page ready to use, support dark/light modes</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/signup-login-page.png" width="500" alt="Pre-built signup/login page"> |
| <h3>Passwords, OTP, Passkeys, Biometric</h3><p>All modern authentication methods that your users love. Add secure authentication for your users without compromising on user experience</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/login-methods.png" width="500" alt="Authgear"> |
| <h3>Multifactor Auth (MFA)</h3><p>Secure your application with additional authentication factors. TOTP (Google Authenticator, Authy), SMS/ Email OTP, Additional Password </p><p>*Adaptive MFA coming soon</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/mfa.png" width="500" alt="Multifactor Authentication"> |
| <h3>User Management Portal perfect for User Support</h3><p>GUI for managing user profile, session revocation, analytics, monitoring, logs, setting up authentication and authorization requirements </p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/user-management.png" width="500" alt="Multifactor Authentication"> |
| <h3>Account Settings </h3><p>Pre-built account settings component for your user to self-manage profile, verify their e-mail, or change their password, etc.</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/account-settings.png" width="500" alt="Plug-and-play account settings"> |
| <h3>Role-based Access Control</h3><p>Extend access management on your application that Authgear powers using Roles and Groups</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/rbac.png" width="500" alt="Role-based Access Control"> |
| <h3>Social and Enterprise (OAuth) Connection</h3><p>Let your user login with Google, Facebook, Apple, WeChat, Linkedin, ADFS, etc with very simple configs.</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/social-connections.png" width="500" alt="OAuth Connections"> |
| <h3>SAML Enterprise SSO</h3><p>Enable SSO with enterprise softwares using SAML protocol</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/saml-sso.png" width="500" alt="SAML Enterprise SSO"> |
| <h3>Passkeys</h3><p>Easier and more secure anti-phishing alternative to passwords. Support FIDO2 compliant hardware keys and password managers</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/passkeys.png" width="500" alt="Login with Passkeys"> |
| <h3>Webhook and TypeScript Hooks</h3><p>Get notified when important events such as new user signup happen. Customize and extend Authgear's capabilities with custom logic.</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/hooks.png" width="500" alt="Webhook and TypeScript Hooks"> |
| <h3>I18n and Email/SMS templates</h3><p>Localization for different languages and customizable email/SMS templates for authentication flows.</p> | <img src="https://raw.githubusercontent.com/authgear/.github/main/meta/features/i18n.png" width="500" alt="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.
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!
<a href="https://github.com/authgear/authgear-server/graphs/contributors"> <img src="https://contrib.rocks/image?repo=authgear/authgear-server" /> </a><small>Made with contrib.rocks.</small>
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.
Contributors
Showing top 12 contributors by commit count.
