feat(auth): integrate Clerk for single-tenant deployments - #17
Merged
Merged
Conversation
adityathebe
force-pushed
the
feat/clerk-authentication
branch
from
September 5, 2026 02:59
ef5de09 to
bd25a2c
Compare
Add Clerk sign-in and organization activation to the UI, with runtime public configuration and a user menu. Verify sessions and the configured organization at the API boundary, including cookie authentication for same-origin requests and event streams. Require all three Clerk settings together while retaining unauthenticated local use when none are set. All organization members have equal access; no local user tables or role policy are introduced.
A same-site sibling origin can trigger authenticated mutations using the browser session cookie despite SameSite=Lax. Apply the standard library cross-origin check after session and organization verification, returning a JSON 403 for rejected requests. No origin allowlist or Bearer-specific bypass is needed.
adityathebe
force-pushed
the
feat/clerk-authentication
branch
from
September 7, 2026 04:11
c8d4dad to
0280c5c
Compare
Keep sign-in and sign-up on the Recon origin using Clerk prebuilt components. Route pending organization selection for existing members through the tenant gate while preserving other session tasks and the built-in zero-membership warning. Provide direct sign-out for denied users, allow tall auth forms to scroll, and document the required organization-creation policy and invitation redirect.
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.
Relates to #9.
Draft pending Clerk credentials and resolution of the existing Prowler/commons-db compilation mismatch.
Uninvited User
User with an invitation