-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Support UI and backend of new custom auth plugin #595
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
Conversation
🦋 Changeset detectedLatest commit: cf73b74 The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Rate limit exceeded@kingston has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 14 minutes and 8 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⛔ Files ignored due to path filters (52)
📒 Files selected for processing (153)
WalkthroughThis change introduces a comprehensive overhaul and expansion of authentication plugin infrastructure, including new generators, schemas, React hooks, and placeholder modules. The update adds first-class support for email/password authentication, centralized role editing with lenses, and a placeholder authentication system for extensibility and testing. Numerous files are refactored, removed, or reorganized to modularize generator logic, unify backend and web generator creation, and update model schemas. Several obsolete or duplicated files are deleted, and dependencies are updated across packages. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant WebApp
participant AuthPlugin (Core/Placeholder)
participant Backend
participant DB
User->>WebApp: Accesses login/register page
WebApp->>AuthPlugin: Renders AuthDefinitionEditor or PlaceholderAuthDefinitionEditor
User->>WebApp: Submits credentials (email/password)
WebApp->>Backend: Sends GraphQL mutation (login/register)
Backend->>AuthPlugin: Calls auth service (create/authenticate user)
AuthPlugin->>DB: Looks up or creates user/account/session
DB-->>AuthPlugin: Returns user/session info
AuthPlugin-->>Backend: Returns session payload
Backend-->>WebApp: Returns mutation result (session info)
WebApp->>AuthPlugin: Updates session via React hooks/context
WebApp-->>User: Navigates or displays authenticated UI
Note over AuthPlugin: PlaceholderAuth can be swapped for CoreAuth in this flow.
sequenceDiagram
participant Developer
participant ProjectBuilder
participant PluginAuth
participant GeneratorCreators
Developer->>ProjectBuilder: Adds or configures auth plugin
ProjectBuilder->>PluginAuth: Loads plugin metadata/schema
PluginAuth->>GeneratorCreators: Uses common backend/web generator creators
GeneratorCreators-->>PluginAuth: Returns generator bundles
PluginAuth->>ProjectBuilder: Registers generators for codegen/build
ProjectBuilder->>PluginAuth: Invokes generators for backend/web/admin apps
PluginAuth-->>ProjectBuilder: Provides generated code/templates
sequenceDiagram
participant User
participant WebApp
participant ReactHooks
participant ApolloClient
participant Backend
User->>WebApp: Triggers useCurrentUser/useLogOut hooks
WebApp->>ReactHooks: Calls useCurrentUser/useLogOut
ReactHooks->>ApolloClient: Executes GraphQL query/mutation
ApolloClient->>Backend: Sends query/mutation
Backend-->>ApolloClient: Returns user/session data or mutation result
ApolloClient-->>ReactHooks: Provides data/error/loading state
ReactHooks-->>WebApp: Returns user info, triggers session update, or error
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Chores
react-hook-formand related dependencies to version 7.60.0 across multiple packages.Style