Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces cloud authentication provider integration using Clerk, allowing users to sign in and automatically create organizations when none exist. The changes remove the multi-organization functionality and simplify the authentication flow.
- Added CloudAuthProvider with Clerk integration for user authentication and webhook handling
- Replaced multi-auth provider with cloud auth provider in configuration and routing
- Simplified organization creation and removed domain-based organization lookup
Reviewed Changes
Copilot reviewed 34 out of 36 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| services/ui/src/views/router.tsx | Adds new login callback route for cloud auth |
| services/ui/src/views/auth/LoginCallback.tsx | New component handling cloud auth callbacks |
| services/ui/src/views/auth/Login.tsx | Integrates Clerk SignIn component and refactors auth handlers |
| services/ui/src/index.tsx | Wraps app with ClerkProvider when publishable key is available |
| services/ui/src/api.ts | Adds cloudAuth method and removes logout functionality |
| services/platform/src/auth/CloudAuthProvider.ts | New cloud auth provider with Clerk integration |
| services/platform/src/auth/AuthMiddleware.ts | Enhanced JWT verification with JWKS support |
| services/platform/src/organizations/OrganizationService.ts | Simplified organization creation removing domain/username logic |
| services/platform/src/config/env.ts | Updated auth configuration for cloud provider |
| services/platform/db/migrations/ | Database migrations for admin external_id and organization schema changes |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR includes the cloud auth provider allowing users to sign in and create a organization if one does not exist.