Skip to content

Include cloud auth provider#29

Merged
jeroenrinzema merged 2 commits intomainfrom
feat/cloud-auth-provider
Oct 13, 2025
Merged

Include cloud auth provider#29
jeroenrinzema merged 2 commits intomainfrom
feat/cloud-auth-provider

Conversation

@jeroenrinzema
Copy link
Copy Markdown
Contributor

This PR includes the cloud auth provider allowing users to sign in and create a organization if one does not exist.

@jeroenrinzema jeroenrinzema requested a review from Copilot October 13, 2025 08:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread services/ui/src/views/auth/LoginCallback.tsx
Comment thread services/ui/src/views/auth/Login.tsx Outdated
Comment thread services/platform/src/auth/CloudAuthProvider.ts
Comment thread services/platform/src/auth/CloudAuthProvider.ts Outdated
Comment thread services/platform/src/auth/AuthMiddleware.ts
@jeroenrinzema jeroenrinzema merged commit 4e26cad into main Oct 13, 2025
2 checks passed
@jeroenrinzema jeroenrinzema deleted the feat/cloud-auth-provider branch October 13, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants