Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth0 Integration #228

Open
mahid797 opened this issue Feb 23, 2025 · 0 comments
Open

Auth0 Integration #228

mahid797 opened this issue Feb 23, 2025 · 0 comments
Assignees
Labels
Backend Backend Related Issue Core Work to do on the core system of the App 🔥Critical Must be addressed immediately; blocking core functionality or major bug Frontend Frontend Related Issue New Feature New feature to be implemented
Milestone

Comments

@mahid797
Copy link
Collaborator

mahid797 commented Feb 23, 2025

We need to integrate Auth0’s Universal Login into our Next.js + NextAuth application, while retaining the existing Credentials-based flow as a fallback. Only one authentication method should be active at a time, determined by an environment variable (AUTH_METHOD). This allows for a flexible setup that can be switched between a fully self-hosted credentials approach or Auth0-based authentication without extensive code rewrites.


Overview

  • Add Auth0 as a NextAuth provider, using Universal Login (redirect flow).
  • Make Credentials the default or alternate provider, switchable via AUTH_METHOD.
  • Ensure user data is still stored (or synced) in Supabase so we can manage roles, collaboration features, and possibly row-level security (RLS) in the future.
  • Preserve (or gracefully disable) our custom login/sign-up forms when AUTH_METHOD=auth0.

Note:
These issues cover both server-side and client-side tasks regarding Auth0. Future enhancements, like advanced RLS or social logins, will be documented in subsequent issues.


Sub-Issues

  1. Server-Side Integration with Auth0 #229
  2. Client-Side Updates for Universal Login #230

💡 Important: Please read the Development Guidelines before starting work on these issues

Bluewave Datahall Development Guide

References

📄 Note:
Please read both sub-issues (Server Side and Client Side) before beginning development to understand the overall scope and ensure consistency across the entire auth flow.

@mahid797 mahid797 added Backend Backend Related Issue Core Work to do on the core system of the App Frontend Frontend Related Issue New Feature New feature to be implemented 🔥Critical Must be addressed immediately; blocking core functionality or major bug labels Feb 23, 2025
@mahid797 mahid797 added this to the v0.1 milestone Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Backend Related Issue Core Work to do on the core system of the App 🔥Critical Must be addressed immediately; blocking core functionality or major bug Frontend Frontend Related Issue New Feature New feature to be implemented
Projects
None yet
Development

No branches or pull requests

2 participants