Skip to content

A turnkey OAuth & authentication system, designed for both Cloudflare Workers and Node.js

License

Notifications You must be signed in to change notification settings

ValueMelody/melody-auth

Repository files navigation

Melody Auth

Melody Auth is a user-friendly, robust solution for implementing and hosting your own OAuth and authentication system.

  • Deploy to Cloudflare using Workers, D1, and KV in just minutes — minimizing infrastructure and DevOps overhead.
  • Self-Host with Node.js, Redis, and PostgreSQL — giving you full control over your data and infrastructure.

What's included?

Server Features Supported

  • OAuth 2.0:
    • Authorize
    • Token Exchange
    • Refresh Token Revoke
    • App Consent
    • App Scopes
    • User Info Retrieval
    • OpenID Configuration
  • Authorization:
    • Sign-In
    • Sign-Up
    • Sign-Out
    • Email Verification
    • Password Reset
    • Role-Based Access Control
    • Account Linking
    • Localization How to support a new locale
  • Social Sign-In:
    • Google Sign-In
    • Facebook Sign-In
    • GitHub Sign-In
  • Organization:
    • Branding config override
  • Multi-Factor Authentication How to setup MFA
    • Email MFA
    • OTP MFA
    • SMS MFA
    • MFA Enrollment
    • Passkey Enrollment
  • Policy How to trigger a different policy
    • sign_in_or_sign_up
    • update_info
    • change_password
    • change_email
    • reset_mfa
    • manage_passkey
  • Mailer Option Email Provider Setup Doc
    • SendGrid
    • Mailgun
    • Brevo
    • STMP (Node.js environment only)
  • SMS Option SMS Provider Setup Doc
    • Twilio
  • JWT Authentication
  • Brute-force Protection:
    • Log in attempts
    • Password reset attempts
    • OTP MFA attempts
    • SMS MFA attempts
    • Email MFA attempts
    • Change Email attempts
  • Logging:
    • Email Logs
    • SMS Logs
    • Sign-in Logs

Admin Panel & S2S REST API Features Supported

  • View Configurations
  • Manage Users
  • Manage Apps
  • Manage Scopes
  • Manage Roles
  • Manage Organizations
  • View Logs

Screenshots

Authorization Screenshots
Admin Panel Screenshots

License

This project is licensed under the MIT License. See the LICENSE file for details.