Skip to content

fix: provision client scopes into the client_scope junction - #3354

Merged
tada5hi merged 3 commits into
masterfrom
fix/client-scope-provisioning
Jul 29, 2026
Merged

tada5hi merged 3 commits into
masterfrom
fix/client-scope-provisioning

Conversation

@tada5hi

@tada5hi tada5hi commented Jul 29, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #3347 (provisioning half; the dead-column removal is deliberately out of scope, see below).

The bug

buildWebClientAttributes wrote the per-realm web client's intended scopes into auth_clients.scope, but /authorize resolves scopes exclusively through the auth_client_scopes junction (OAuth2ScopeRepository.findByClientId). No junction rows were ever created, so the declared global openid was never enforced.

With an empty granted set the code-request verifier behaves like this:

Request Outcome
scope=global openid passes, via the global bypass
scope=openid insufficient_scope
no scope param code issued with scope=''

Authup's own clients always send global openid, so the gap only surfaced for a non-kit RP performing a standard OIDC scope=openid request against a realm's built-in web client.

Changes

  • WebClientProvisioner.ensureForRealm binds global + openid as auth_client_scopes rows, driven by a shared WEB_CLIENT_SCOPE_NAMES so the descriptive column cannot drift from what is actually granted. The binding runs outside the attribute dirty-check: an instance provisioned before the rows existed carries an up-to-date client with no scopes at all, and must be backfilled on the next boot. Additive like the attribute merge, so a scope an admin bound by hand survives.
  • ClientProvisioningRelations gains globalScopes / realmScopes. There was no provisioning path to auth_client_scopes for any client, not just web (the contributing factor named in the issue).
  • Realm-level scopes now synchronize before the realm's clients. Otherwise a realmScopes entry could not reference a scope declared in the same realm block. Scopes are leaf entities with no relations of their own, so moving them first is safe.
  • ProvisioningEntityResolver takes a clientScoped option. auth_scopes has no clientId column, so the always-pinned client predicate would not compile against it.
  • An existing client named web is taken over rather than skipped. The name is reserved (CLIENT_RESERVED_NAMES), so a non-built-in row predates the reservation and must not shadow the realm's login client. Note the consequence: such a client is converted to public / builtIn with the trusted-origin redirect patterns, so an integration still using it with a secret stops working.

Verification

  • authorize.spec.ts gains the issue's exact reproduction (scope=openid alone against the master realm's web client). Confirmed red with the scope binding disabled, green with it.
  • Unit coverage for junction binding, backfill of an already-current client, idempotency, hand-bound scope preservation, unprovisioned-scope skip, and the takeover.
  • provisioning.spec.ts covers both file-declared client scopes and the web client end to end.
  • Full server-core suite green (1787 tests), plus build, check:types and eslint.

Out of scope

The dead columns (Client.scope, baseUrl, rootUrl) are untouched. Dropping them needs a generated migration on top of #3352, and the decision applies to all three at once. Client.scope is now documented in code and in .agents/architecture.md as descriptive only, with the junction named as the authorization source.

Summary by CodeRabbit

  • New Features

    • Clients can now be provisioned with global and realm-specific scopes.
    • Built-in web clients automatically receive and maintain their required scope assignments.
    • Existing clients missing scope assignments are updated automatically.
  • Bug Fixes

    • Corrected authorization for the web client when requesting OpenID scope.
    • Preserved manually assigned scopes and skipped unavailable scopes safely.
  • Documentation

    • Added provisioning guidance for configuring client scopes.

The per-realm `web` client declared `global openid` in the dead
`auth_clients.scope` column and created no `auth_client_scopes` rows, but
`/authorize` resolves scopes exclusively through that junction
(`OAuth2ScopeRepository.findByClientId`). The declared intent was therefore
never enforced: a standard OIDC `scope=openid` authorization request failed
with `insufficient_scope`, and only requests carrying `global` passed, via
the verifier's bypass. Authup's own clients always send `global openid`, so
the gap only surfaced for a non-kit RP.

`WebClientProvisioner.ensureForRealm` now binds the built-in `global` and
`openid` scopes as junction rows, driven by a shared
`WEB_CLIENT_SCOPE_NAMES` so the descriptive column cannot drift from what is
actually granted. The binding runs even when the client attributes are
already current, since an instance provisioned before the rows existed
carries an up-to-date client with no scopes at all. It is additive like the
attribute merge, so a scope an admin bound by hand survives.

There was no provisioning path to `auth_client_scopes` for any client, not
just `web`, so `ClientProvisioningRelations` gains `globalScopes` /
`realmScopes`. Realm-level scopes are now synchronized before the realm's
clients, otherwise a `realmScopes` entry could not reference a scope
declared in the same realm block. `ProvisioningEntityResolver` takes a
`clientScoped` option because `auth_scopes` has no `clientId` column and the
pinned predicate would not compile against it.

An existing client named `web` is now taken over rather than skipped. The
name is reserved (`CLIENT_RESERVED_NAMES`), so a non-built-in row predates
the reservation and must not shadow the realm's login client.
Copilot AI review requested due to automatic review settings July 29, 2026 11:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@tada5hi, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 43 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: dd2b52bc-a603-4575-b335-fff29c7e1ee3

📥 Commits

Reviewing files that changed from the base of the PR and between 9b3de5d and d5bf2ae.

📒 Files selected for processing (4)
  • apps/server-core/src/core/entities/client/web-client.ts
  • apps/server-core/test/unit/core/entities/client/web-client.spec.ts
  • apps/server-core/test/unit/core/provisioning/synchronizer/entity-resolver.spec.ts
  • apps/server-core/test/unit/modules/provisioning.spec.ts
📝 Walkthrough

Walkthrough

Client provisioning now supports global and realm scopes through auth_client_scopes junction rows. Resolver behavior, application wiring, built-in web client provisioning, realm ordering, tests, fixtures, and documentation were updated accordingly.

Changes

Client scope provisioning

Layer / File(s) Summary
Scope contracts and resolution
apps/server-core/src/core/provisioning/entities/client/*, apps/server-core/src/core/provisioning/synchronizer/{types.ts,entity-resolver.ts,index.ts,realm/*}
Client relations accept validated globalScopes and realmScopes; resolver queries centralize normalization, wildcard handling, and optional client scoping; realm scopes synchronize before clients.
Client scope synchronization
apps/server-core/src/core/provisioning/synchronizer/client/*
Client provisioning resolves global and realm scopes and synchronizes their ClientScope junction rows.
Runtime wiring and web client provisioning
apps/server-core/src/app/modules/{provisioning,http/modules}/*, apps/server-core/src/core/entities/client/web-client.ts
Scope repositories are injected into provisioning flows; the built-in web client binds configured scopes, repairs missing junction rows, avoids redundant updates, and takes over conflicting non-built-in web clients.
Validation and documentation
apps/server-core/test/*, docs/src/guide/deployment/provisioning.md, .agents/architecture.md
Fixtures and tests cover scope junctions, authorization, idempotency, missing scopes, and web-client takeover; provisioning documentation describes the new relations and runtime behavior.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant ProvisioningInput
  participant ClientProvisioningSynchronizer
  participant ScopeRepository
  participant ClientScopeRepository
  participant Authorization
  ProvisioningInput->>ClientProvisioningSynchronizer: provide client scope relations
  ClientProvisioningSynchronizer->>ScopeRepository: resolve global and realm scopes
  ClientProvisioningSynchronizer->>ClientScopeRepository: persist client-scope junction rows
  Authorization->>ClientScopeRepository: read scopes for client
  ClientScopeRepository-->>Authorization: return granted scopes
Loading

Possibly related PRs

  • authup/authup#2905: Extends provisioning synchronizer and resolver wiring for client scopes.
  • authup/authup#3104: Updates per-realm web client provisioning and reserved-name behavior.

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately highlights the main change: provisioning client scopes into the client_scope junction.
Linked Issues check ✅ Passed The PR implements the requested client-scope provisioning and scope-relation support for web and other clients, matching issue #3347.
Out of Scope Changes check ✅ Passed The changes shown are all directly related to provisioning, synchronization, documentation, or tests for client scopes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/client-scope-provisioning

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

authup

npm i https://pkg.pr.new/authup@3354

@authup/client-web

npm i https://pkg.pr.new/@authup/client-web@3354

@authup/server-core

npm i https://pkg.pr.new/@authup/server-core@3354

@authup/access

npm i https://pkg.pr.new/@authup/access@3354

@authup/client-web-kit

npm i https://pkg.pr.new/@authup/client-web-kit@3354

@authup/client-web-kit-theme

npm i https://pkg.pr.new/@authup/client-web-kit-theme@3354

@authup/client-web-nuxt

npm i https://pkg.pr.new/@authup/client-web-nuxt@3354

@authup/client-web-theme

npm i https://pkg.pr.new/@authup/client-web-theme@3354

@authup/core-http-kit

npm i https://pkg.pr.new/@authup/core-http-kit@3354

@authup/core-kit

npm i https://pkg.pr.new/@authup/core-kit@3354

@authup/core-realtime-kit

npm i https://pkg.pr.new/@authup/core-realtime-kit@3354

@authup/errors

npm i https://pkg.pr.new/@authup/errors@3354

@authup/i18n

npm i https://pkg.pr.new/@authup/i18n@3354

@authup/kit

npm i https://pkg.pr.new/@authup/kit@3354

@authup/server-adapter-kit

npm i https://pkg.pr.new/@authup/server-adapter-kit@3354

@authup/server-adapter-node

npm i https://pkg.pr.new/@authup/server-adapter-node@3354

@authup/server-adapter-socket-io

npm i https://pkg.pr.new/@authup/server-adapter-socket-io@3354

@authup/server-adapter-web

npm i https://pkg.pr.new/@authup/server-adapter-web@3354

@authup/server-kit

npm i https://pkg.pr.new/@authup/server-kit@3354

@authup/server-test-kit

npm i https://pkg.pr.new/@authup/server-test-kit@3354

@authup/specs

npm i https://pkg.pr.new/@authup/specs@3354

commit: ba9603a

Self-review follow-up. The takeover makes the client public
(`authMethod: none`), so a secret it carried as a confidential client can
never authenticate it again. It was left in the column, plaintext, as dead
sensitive material.

Clearing it needs the row re-read WITH the secret: `secret` is a
`select: false` column, so the loaded entity carries no value for it and
typeorm's changed-column diff never emits the null. The re-read is confined
to the takeover branch, and the secret stays out of
`buildWebClientAttributes` because an undefined-vs-null compare would mark
every web client dirty on every boot.

Proven against a real datasource in `provisioning.spec.ts`, which is what
caught the first attempt: the repository fake merges by `Object.assign`, so
the unit test passed while the column kept its value.

Also consolidate the provisioning spec from four full provisioning passes to
two. The suite shares one sqlite file across parallel spec files, so extra
write pressure shows up as flakes elsewhere.
@tada5hi

tada5hi commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator Author

Self-review notes

Two things came out of auditing the branch, plus three observations worth recording.

Fixed: the takeover left a plaintext secret at rest

The takeover switches the client to authMethod: none, so a secret it carried as a confidential client can never authenticate it again (OAuth2ClientAuthenticator rejects a supplied secret for none, and ClientAuthenticator only accepts secret clients). It was still sitting in the column. Now cleared.

The first attempt at this silently did nothing: secret is a select: false column, so the loaded entity carries no value for it and typeorm's changed-column diff never emitted the null. It only surfaced because the assertion runs against a real datasource in provisioning.spec.ts; the repository fake merges by Object.assign, so a fake-only test would have passed while the column kept its value. The fix re-reads the row with the secret, confined to the takeover branch. The secret deliberately stays out of buildWebClientAttributes, since an undefined-vs-null compare would mark every web client dirty on every boot.

Corrected: the "no scope param" row in the issue is not reachable

The impact table in #3347 lists a third case, "no scope param -> code issued with scope=''". That cannot happen: OAuth2AuthorizationCodeRequestValidator mounts scope as required (z.string().min(3).max(512)), and all three verifier call sites (GET /authorize, POST /authorize, the identity-provider callback) run the validator first. A scope-less request is a 400 before the verifier sees it.

That matters for reviewing this PR, because it means the verifier's else { data.scope = scopeNames.join(' ') } branch is dead code. Had it been reachable, this change would have widened it: a scope-less authorize against the web client would have started defaulting to global openid instead of '', and global is what makes the identity policy data available in RequestPermissionEvaluator. As it stands there is no such path, so the only behavioral delta is that in-grant scope requests stop failing.

Observations, deliberately not addressed

  • Concurrent first boot can collide on the unique index. ensureScopes is find-then-insert against @Unique(['clientId','scopeId']), so two replicas booting simultaneously against an unprovisioned database can both insert and one crashes. This is the shape of the entire provisioner (the client row itself, ProvisioningJunctionSynchronizer, every permission and role junction), not something this PR introduces, and the window is the first boot per realm only. Guarding just this path would be arbitrary, and isUniqueConstraintDatabaseError lives in the adapter layer, which core/ must not import. Worth a separate pass over the provisioner as a whole.
  • Four queries per realm per boot. Two scope lookups and two junction lookups. Memoizing the global scope ids across realms was rejected: the same provisioner instance is long-lived behind RealmService, so a cached id would outlive a scope an admin deleted and recreated, and the stale id then fails as an FK violation at insert time. The queries are cheap and correct.
  • ensureScopes duplicates what ClientProvisioningSynchronizer now does for globalScopes. The web client is deliberately not routed through the client synchronizer, because RealmService.save() provisions it at runtime and would otherwise have to construct the permission and role repositories and synchronizers too. The duplication is the existing split, kept minimal.

Failure handling is unchanged and self-healing: RealmService.save() already catches and logs a provisioning failure, and because the scope binding runs outside the attribute dirty-check, the next startup pass reconciles anything a runtime failure left behind.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
apps/server-core/src/core/entities/client/web-client.ts (1)

154-186: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

ensureScopes reimplements the insert-only junction pattern instead of reusing ProvisioningJunctionSynchronizer, and does N sequential scope lookups.

This hand-rolled find-then-create loop duplicates logic already centralized in ProvisioningJunctionSynchronizer (used for the identical purpose in client/module.ts's scopeJunction), and looks up each scope name with a separate query instead of one batched findManyBy.

♻️ Batch the scope lookup
-        for (const name of WEB_CLIENT_SCOPE_NAMES) {
-            const scope = await this.scopeRepository.findOneBy({
-                name,
-                realmId: null,
-            });
-
-            if (!scope) {
-                ...
-                continue;
-            }
-
-            const existing = await this.clientScopeRepository.findOneBy({
-                clientId: client.id,
-                scopeId: scope.id,
-            });
-
-            if (existing) {
-                continue;
-            }
-
-            await this.clientScopeRepository.save(this.clientScopeRepository.create({ ... }));
-        }
+        const scopes = await this.scopeRepository.findManyBy({ realmId: null, name: WEB_CLIENT_SCOPE_NAMES });
+        const missing = WEB_CLIENT_SCOPE_NAMES.filter((n) => !scopes.some((s) => s.name === n));
+        missing.forEach((n) => this.logger?.warn(`Skipping scope '${n}' ...`));
+        // then delegate the insert-only part to ProvisioningJunctionSynchronizer if layering allows it
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/server-core/src/core/entities/client/web-client.ts` around lines 154 -
186, Update ensureScopes to reuse ProvisioningJunctionSynchronizer, matching the
scopeJunction setup in client/module.ts, instead of manually checking and
inserting client-scope rows. Batch-load WEB_CLIENT_SCOPE_NAMES with a single
findManyBy lookup, preserve the warning for unprovisioned scopes, and retain
insert-only synchronization for the web client.
apps/server-core/src/core/provisioning/synchronizer/client/module.ts (1)

116-182: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Extract the repeated global+realm resolve/junction-sync pattern.

The new scopes block (Lines 160-182) is now the third copy of the same shape used for permissions (Lines 116-136) and roles (Lines 138-158): resolve global + realm entities, guard on non-empty, sync junction with two key names. Consider a small private helper to consolidate this and prevent future divergence.

♻️ Example helper consolidating the three blocks
+    private async syncScopedJunction<T extends ObjectLiteral>(
+        attributes: Client,
+        resolver: ProvisioningEntityResolver<T>,
+        junction: ProvisioningJunctionSynchronizer<any>,
+        globalNames: string[] | undefined,
+        realmNames: string[] | undefined,
+        targetKey: string,
+        targetRealmKey: string,
+    ): Promise<void> {
+        const targets = [
+            ...await resolver.resolveGlobal(globalNames),
+            ...(attributes.realmId ? await resolver.resolveRealm(realmNames, attributes.realmId) : []),
+        ];
+        if (targets.length > 0) {
+            await junction.synchronize(attributes, targets, targetKey, targetRealmKey);
+        }
+    }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/server-core/src/core/provisioning/synchronizer/client/module.ts` around
lines 116 - 182, Extract the duplicated global-and-realm resolution and
conditional junction synchronization from the provisioning synchronizer into a
small private helper, then update the permission, role, and scope flows to call
it with their resolver results, junction instances, and entity key names.
Preserve realmId handling and skip synchronization when the resolved collection
is empty.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@apps/server-core/src/core/entities/client/web-client.ts`:
- Around line 154-186: Update ensureScopes to reuse
ProvisioningJunctionSynchronizer, matching the scopeJunction setup in
client/module.ts, instead of manually checking and inserting client-scope rows.
Batch-load WEB_CLIENT_SCOPE_NAMES with a single findManyBy lookup, preserve the
warning for unprovisioned scopes, and retain insert-only synchronization for the
web client.

In `@apps/server-core/src/core/provisioning/synchronizer/client/module.ts`:
- Around line 116-182: Extract the duplicated global-and-realm resolution and
conditional junction synchronization from the provisioning synchronizer into a
small private helper, then update the permission, role, and scope flows to call
it with their resolver results, junction instances, and entity key names.
Preserve realmId handling and skip synchronization when the resolved collection
is empty.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0f3b3007-dd15-400b-8af0-226d6009c61e

📥 Commits

Reviewing files that changed from the base of the PR and between 70f7c02 and 9b3de5d.

📒 Files selected for processing (19)
  • .agents/architecture.md
  • apps/server-core/src/app/modules/http/modules/controller.ts
  • apps/server-core/src/app/modules/provisioning/module.ts
  • apps/server-core/src/core/entities/client/web-client.ts
  • apps/server-core/src/core/provisioning/entities/client/relations-validator.ts
  • apps/server-core/src/core/provisioning/entities/client/types.ts
  • apps/server-core/src/core/provisioning/synchronizer/client/module.ts
  • apps/server-core/src/core/provisioning/synchronizer/client/types.ts
  • apps/server-core/src/core/provisioning/synchronizer/entity-resolver.ts
  • apps/server-core/src/core/provisioning/synchronizer/index.ts
  • apps/server-core/src/core/provisioning/synchronizer/realm/module.ts
  • apps/server-core/src/core/provisioning/synchronizer/types.ts
  • apps/server-core/test/data/sources/file.mts
  • apps/server-core/test/unit/core/entities/client/web-client.spec.ts
  • apps/server-core/test/unit/core/entities/scope/fake-repository.ts
  • apps/server-core/test/unit/core/entities/scope/service.spec.ts
  • apps/server-core/test/unit/http/controllers/workflows/authorize.spec.ts
  • apps/server-core/test/unit/modules/provisioning.spec.ts
  • docs/src/guide/deployment/provisioning.md

The `clientScoped` option refactored `resolveGlobal` / `resolveRealm` /
`resolveClient` onto one shared path, and none of the three had direct
coverage. `resolveClient` in particular is reachable only through a user's
`clientPermissions` / `clientRoles`, which no fixture exercises.

The spec asserts the emitted where clause per method, for named lookups and
the `*` wildcard, plus name canonicalization and the empty short-circuit.
Every client-scoped case also passes against the pre-refactor
implementation, which is what makes the refactor provably
behaviour-preserving for permissions and roles.
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.

Per-realm web client provisions scopes into the dead Client.scope column, not client_scope rows

2 participants