A lightweight, Rust-based Identity Provider for Single Sign-On via OpenID Connect, OAuth 2, and PAM, with a strong focus on passkeys.
- Stars
- 651
- Forks
- 70
- Open issues
- 3
- Last commit
- 11 days ago
What is it?
Melody Auth is an authentication and OAuth server you can deploy and host yourself. It runs on Cloudflare Workers with D1 and KV, or on Node.js with Redis and PostgreSQL, so teams can choose between minimal infrastructure and full control over their data.
The server covers the core identity flows: OAuth 2.0 authorization and token exchange, OpenID configuration, sign-up and sign-in (including passwordless), email verification, password reset, and account linking. It also supports social sign-in with Google, GitHub, Apple and others, plus OIDC and SAML SSO providers on Node.js. Multi-factor options include email, OTP, SMS, passkeys and recovery codes.
The project ships with a server-to-server REST API, an admin panel for managing users, apps, scopes, roles and organizations, and React, Angular, Vue and web SDKs that implement PKCE-based login in the browser.
Key features
- 01OAuth 2.0 authorization, token exchange and OpenID configuration
- 02Social sign-in with Google, GitHub, Apple, Facebook and Discord
- 03Multi-factor authentication with email, OTP, SMS and passkeys
- 04Role-based access control, organizations and user attributes
- 05Admin panel and server-to-server REST API for management
- 06Mailer integrations for SendGrid, Mailgun, Resend, Postmark and SMTP
Use cases
- Adding a centralized login and OAuth provider to multiple internal apps
- Self-hosting an identity provider to keep user data under your own control
- Giving a React, Angular or Vue frontend PKCE-based login without building auth from scratch
Things to know
- SAML SSO and SMTP mail are supported only in the Node.js environment, not on Cloudflare Workers.
- The README gives no install commands, so setup depends on the linked external documentation.
In collections
Topics
FAQ
- What is melody-auth?
- A self-hostable OAuth 2.0 and OIDC authentication server with login, MFA, social sign-in and an admin panel, running on Cloudflare Workers or Node.js. Melody Auth is an authentication and OAuth server you can deploy and host yourself. It runs on Cloudflare Workers with D1 and KV, or on Node.js with Redis and PostgreSQL, so teams can choose between minimal infrastructure and full control over their data.
- Is melody-auth free to use? What license does it have?
- melody-auth is open source under the MIT license. Check the license terms before using it in commercial products.
- Is melody-auth still maintained?
- Actively maintained. The last commit to melody-auth was on Oct 27, 2026.
- What can I use melody-auth for?
- Adding a centralized login and OAuth provider to multiple internal apps Self-hosting an identity provider to keep user data under your own control Giving a React, Angular or Vue frontend PKCE-based login without building auth from scratch
- Where can I get melody-auth?
- The source code and installation instructions are on GitHub: https://github.com/ValueMelody/melody-auth
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Open-source single sign-on and identity provider server in Java, supporting CAS, SAML2, OAuth2, OpenID Connect and multifactor authentication.
A lightweight, self-hosted OpenID Connect identity provider for small teams, with password login, mandatory TOTP and RBAC.
Open-source identity provider for SSO, supporting SAML, OAuth2/OIDC, LDAP and RADIUS, self-hostable from small labs to large clusters.
Self-hosted, Keycloak-compatible identity provider written in Rust, shipped as a single binary with OIDC, OAuth2, DPoP and CIBA support.
Self-hostable authentication server covering passwordless login, passkeys, MFA, SSO and social login, with a pre-built login UI and admin portal.