feat: add tenant SSO context surface - #1685
Draft
Zetazzz wants to merge 1 commit into
Draft
Conversation
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.
Stack
feat/oauth-provider-adapters(feat: add OAuth provider adapters #1684)Summary
ssoSurfacemodule to the completereq.constructivecontextunified_auth_moduleprivate schema through authoritative module metadataundefinedwhen the current Tenant has no provisioned unified-auth modulecreateDefaultRegistry()so the auth service explicitly owns its registration and costIsolation boundary
The loader requires the request Context database ID, binds its metadata query to that ID, and requires database scope. It does not infer Tenant/database from request input, scan another database, fall back to a global
sso_private, or read Site policy and Provider secrets.This query matches the Constructive DB unified-auth foundation at
7692146ee12; the dependency pin remains a later integration-slice responsibility.Validation
pnpm --filter @constructive-io/express-context buildpnpm --filter @constructive-io/express-context exec jest --runInBand(4 suites, 32 tests)git diff --check