docs(32.2-03): complete sm-oauthserver-plugin backend-subject mode plan
This commit is contained in:
@@ -0,0 +1,277 @@
|
|||||||
|
---
|
||||||
|
phase: 32.2-mcp-oauth-with-administrator-subjects
|
||||||
|
plan: 03
|
||||||
|
subsystem: auth
|
||||||
|
tags: [mcp, oauth, wristband, cabana, sm-oauthserver-plugin, postgres, my-account, admin-list]
|
||||||
|
|
||||||
|
requires:
|
||||||
|
- phase: 32.2-01
|
||||||
|
provides: pact.MCPAdminConsent, MCPGrant.Subject backend, wristband ConsentPath/DefaultScopes, cabana TokenScopeNames/TokenScopeLabels/BackendAccessRevokedEvent, account item actions
|
||||||
|
- phase: 32.2-02
|
||||||
|
provides: admin SPA /connect screen and My account item rows
|
||||||
|
provides:
|
||||||
|
- golem15.oauthserver config keys mcp.subject (user|backend), mcp.consent_path, oidc.enabled
|
||||||
|
- migration 202611200001_add_golem15_oauthserver_backend_subjects (nullable user_id, consents.backend_user_id, partial indexes, NOT VALID subject checks)
|
||||||
|
- administrator-subject code issue, exchange, refresh rotation and verification under a separate backend grants advisory lock
|
||||||
|
- controllers.MCPAdminConsent published as pact.MCPAdminConsent in backend mode
|
||||||
|
- classes.BackendCascade on cabana.BackendAccessRevokedEvent (backend mode only), RevokeBackendGrants, FireBackendRevokedAfterCommit
|
||||||
|
- My account section mcp_connections with a revoke item action (backend mode only)
|
||||||
|
- admin-wide golem15.oauthserver.mcpconnections list, permission golem15.oauthserver.manage_mcp_connections, side-menu entry (backend mode only)
|
||||||
|
affects: [32.2-04 first consumer app wiring, 32.2-05 unit tests and release]
|
||||||
|
|
||||||
|
actuals:
|
||||||
|
tokens: 35800
|
||||||
|
tasks: 3
|
||||||
|
commits: 3
|
||||||
|
plan_head_before: 7b9899f36f45a13daccf3ec6f7d5c729ebfcc5f1
|
||||||
|
plan_head_after: 4c209c183b7806c8af2be232fb15ec475d953342
|
||||||
|
|
||||||
|
tech-stack:
|
||||||
|
added: []
|
||||||
|
patterns:
|
||||||
|
- "Per-row subject: user_id NULL plus backend_user_id marks an administrator's grant; every user-mode query already filters on user_id"
|
||||||
|
- "Backend-mode surfaces (routes, admin controller, permission, navigation, My account section, listener) are returned only when mcp.subject is backend, so user-mode apps are byte-for-byte unchanged"
|
||||||
|
- "Read-only admin list over a derived table aliased to the model's table name, so cabana's qualified search, sort and id lookups work unchanged"
|
||||||
|
|
||||||
|
key-files:
|
||||||
|
created:
|
||||||
|
- ../sm-oauthserver-plugin/updates/202611200001_add_golem15_oauthserver_backend_subjects.go
|
||||||
|
- ../sm-oauthserver-plugin/classes/mcp_backend_subject.go
|
||||||
|
- ../sm-oauthserver-plugin/classes/backend_cascade.go
|
||||||
|
- ../sm-oauthserver-plugin/controllers/mcp_admin_consent.go
|
||||||
|
- ../sm-oauthserver-plugin/controllers/mcp_connections.go
|
||||||
|
- ../sm-oauthserver-plugin/controllers/mcpconnections/config_list.yaml
|
||||||
|
- ../sm-oauthserver-plugin/models/mcp_connection.go
|
||||||
|
- ../sm-oauthserver-plugin/models/mcpconnection/columns.yaml
|
||||||
|
- ../sm-oauthserver-plugin/account.go
|
||||||
|
- ../sm-oauthserver-plugin/backend_mode_smoke_test.go
|
||||||
|
- ../sm-oauthserver-plugin/backend_revocation_smoke_test.go
|
||||||
|
- ../sm-oauthserver-plugin/backend_account_smoke_test.go
|
||||||
|
modified:
|
||||||
|
- ../sm-oauthserver-plugin/config/config.yaml
|
||||||
|
- ../sm-oauthserver-plugin/servers.go
|
||||||
|
- ../sm-oauthserver-plugin/routes.go
|
||||||
|
- ../sm-oauthserver-plugin/plugin.go
|
||||||
|
- ../sm-oauthserver-plugin/classes/mcp_store.go
|
||||||
|
- ../sm-oauthserver-plugin/classes/mcp_verifier.go
|
||||||
|
- ../sm-oauthserver-plugin/classes/lazy.go
|
||||||
|
- ../sm-oauthserver-plugin/models/consent.go
|
||||||
|
- ../sm-oauthserver-plugin/admin.go
|
||||||
|
- ../sm-oauthserver-plugin/admin_permissions.go
|
||||||
|
- ../sm-oauthserver-plugin/admin_navigation.go
|
||||||
|
- ../sm-oauthserver-plugin/lang/en/lang.yaml
|
||||||
|
- ../sm-oauthserver-plugin/lang/pl/lang.yaml
|
||||||
|
- ../sm-oauthserver-plugin/harness_test.go
|
||||||
|
- ../sm-oauthserver-plugin/admin_smoke_test.go
|
||||||
|
- ../sm-oauthserver-plugin/README.md
|
||||||
|
|
||||||
|
key-decisions:
|
||||||
|
- "The admin-wide MCP connections list uses the derived-table approach from the plan (no relation-column fallback was needed): cabana's list, count, search, sort and bulk record loading all accept it"
|
||||||
|
- "The bulk revoke is Detached: cabana's non-detached bulk path row-locks the scoped rows with FOR UPDATE, which Postgres refuses on a derived table with a LEFT JOIN and an aggregate; the action opens its own lagoon transaction and takes every selected administrator's backend grants lock first, in ascending id order"
|
||||||
|
- "A backend consent row is created with last_used_at NULL, and the verifier stamps it (at most once a minute, with the token stamp), so My account can show 'Never used' and the admin list a real last use"
|
||||||
|
- "RevokeBackendGrants takes the backend grants locks itself and counts a deleted consent as touched, so a connection whose tokens are all expired or revoked can still be revoked from My account"
|
||||||
|
- "MCPStore carries the app (set by LazyMCPStore; NewMCPStore keeps its signature) so the refresh of an administrator's grant can load cabana.BackendPrincipal; without an app such a refresh is refused"
|
||||||
|
|
||||||
|
patterns-established:
|
||||||
|
- "classes.WithBackendSubject(ctx) marks an MCP code issue as an administrator's; the store then writes user_id NULL and backend_user_id, and the exchange and every rotation keep that shape"
|
||||||
|
|
||||||
|
requirements-completed: [SC-1, SC-2, SC-3, SC-5]
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
- id: D1
|
||||||
|
description: "Backend mode: an authorize request without a scope hands off to {issuer}/backend/connect?request=; an administrator sees admin:read through cabana's consent API and allows it; the code exchange answers access and refresh tokens; the verifier answers Subject backend, UserID 0, BackendUserID = the administrator; mcp_codes, access_tokens, refresh_tokens and consents rows have user_id NULL and backend_user_id set; /oauth/mcp/requests/*, OIDC discovery, JWKS, userinfo, authorize and authorized-apps routes answer 404; scopes_supported holds *, admin:read and offline_access and no read or backend; an unknown subject and backend without mcp.enabled fail boot"
|
||||||
|
requirement: SC-1
|
||||||
|
verification:
|
||||||
|
- kind: integration
|
||||||
|
ref: "../sm-oauthserver-plugin/backend_mode_smoke_test.go#TestBackendModeSmoke"
|
||||||
|
status: pass
|
||||||
|
human_judgment: false
|
||||||
|
- id: D2
|
||||||
|
description: "User mode unchanged: existing MCP consent, store, verifier, revocation, cascade, clients and branding smokes and the admin surface test pass"
|
||||||
|
requirement: SC-2
|
||||||
|
verification:
|
||||||
|
- kind: integration
|
||||||
|
ref: "../sm-oauthserver-plugin TestMCPConsentSmoke, TestMCPStoreSmoke, TestMCPTokenVerifierSmoke, TestMCPTokenVerifier, TestMCPRevocationSmoke, TestUserDeleteCascade, TestClientsAdminSmoke, TestBrandingAdminSmoke, TestAdminSurfaceHidesCredentials"
|
||||||
|
status: pass
|
||||||
|
human_judgment: false
|
||||||
|
- id: D3
|
||||||
|
description: "Refresh rotation keeps the administrator-only shape; the administrator's own password change revokes both clients' grants (verifier and token endpoint refuse them, consents deleted, one revoked event per client); deactivating another administrator on the Administrators screen revokes theirs; a frontend user's grant is untouched"
|
||||||
|
requirement: SC-3
|
||||||
|
verification:
|
||||||
|
- kind: integration
|
||||||
|
ref: "../sm-oauthserver-plugin/backend_revocation_smoke_test.go#TestBackendRevocationSmoke"
|
||||||
|
status: pass
|
||||||
|
human_judgment: false
|
||||||
|
- id: D4
|
||||||
|
description: "My account mcp_connections lists one row per connected client; revoke ends that client only (one revoked event), another administrator gets 404; the MCP connections list answers 403 without its permission, lists both administrators (name or login), searches by administrator and bulk-revokes the selected row; user mode has no section and no screen"
|
||||||
|
requirement: SC-3
|
||||||
|
verification:
|
||||||
|
- kind: integration
|
||||||
|
ref: "../sm-oauthserver-plugin/backend_account_smoke_test.go#TestBackendAccountSmoke"
|
||||||
|
status: pass
|
||||||
|
human_judgment: false
|
||||||
|
- id: D5
|
||||||
|
description: "Plugin README documents the keys, routes, scopes, storage, migration and rollback, verification, refresh, revocation, My account section, MCP connections screen and permission, and the one-subject-per-application rule; plugin.yaml still matches the manifest"
|
||||||
|
requirement: SC-5
|
||||||
|
verification:
|
||||||
|
- kind: other
|
||||||
|
ref: "../sm-oauthserver-plugin/manifest_test.go#TestPluginManifest; README review"
|
||||||
|
status: pass
|
||||||
|
human_judgment: false
|
||||||
|
|
||||||
|
duration: 22min
|
||||||
|
completed: 2026-11-21
|
||||||
|
status: complete
|
||||||
|
---
|
||||||
|
|
||||||
|
# Phase 32.2 Plan 03: sm-oauthserver-plugin backend-subject mode Summary
|
||||||
|
|
||||||
|
**An additive `mcp.subject: backend` mode of sm-oauthserver-plugin. The MCP OAuth sign-in authenticates an administrator through the admin SPA's /connect screen and cabana's consent API. The grant is stored with `user_id` NULL and `backend_user_id` set, and it verifies as an administrator-only grant. It is refreshed and revoked under its own advisory lock and revoked in the same transaction as every cabana access change. Administrators list and revoke their connections on My account, and a permission holder does the same for everyone on an admin-wide screen.**
|
||||||
|
|
||||||
|
## Performance
|
||||||
|
|
||||||
|
- **Duration:** about 22 min
|
||||||
|
- **Started:** 2026-11-21T00:03Z
|
||||||
|
- **Completed:** 2026-11-21T00:25Z
|
||||||
|
- **Tasks:** 3 of 3
|
||||||
|
- **Files modified:** 28 in ../sm-oauthserver-plugin (2205 insertions, 130 deletions)
|
||||||
|
|
||||||
|
## Accomplishments
|
||||||
|
|
||||||
|
- **Tracer (task 1).** Plain `go test` runs the whole administrator path against Postgres:
|
||||||
|
- DCR, then authorize with no scope, which hands off to `{issuer}/backend/connect?request=…`.
|
||||||
|
- cabana `GET` and `POST {api}/mcp/consent/{request}`, then the code exchange.
|
||||||
|
- `MCPVerifyToken` answers `Subject: backend`, `UserID: 0`, `BackendUserID: admin`.
|
||||||
|
- Every row has `user_id` NULL. The MCP code row was checked as well.
|
||||||
|
- **Config.**
|
||||||
|
- `mcp.subject` defaults to `user`. An unknown value fails boot. `backend` fails boot without `mcp.enabled` or together with `mcp_scopes`.
|
||||||
|
- `mcp.consent_path` defaults to `<backend.uri>/connect` in backend mode and `/connect` in user mode.
|
||||||
|
- `oidc.enabled` defaults to true. When false, discovery, JWKS, token, userinfo, authorize, resume, switch account and the redirect-mode consent JSON are not mounted, and the authorized-apps routes are mounted only in user mode.
|
||||||
|
- Backend mode never mounts `/oauth/mcp/requests/*` (Pitfall 4). `Requires()` is still `[golem15.user]`.
|
||||||
|
- **Scopes (D-09).** In backend mode, metadata, the authorize allow-list and the verifier's `MCPScopesSupported` (and through it pier's protected-resource metadata) use the same slice: `cabana.TokenScopeNames` plus `offline_access`. `DefaultScopes` is the catalog, so a client that sends no scope never falls back to `read`.
|
||||||
|
- **Storage.** One additive migration. User-mode writes are unchanged. In backend mode:
|
||||||
|
- `MarkIssued` writes `user_id` NULL and `backend_user_id` = the administrator, under `WithBackendSubject`.
|
||||||
|
- `ByCodeHashForUpdate` and `ByTokenHashForUpdate` recognise backend rows, take `golem15_oauthserver_backend_grants:<id>` shared, and report the administrator as the record's user.
|
||||||
|
- `Mint` and `Create` in such a transaction `Omit("user_id")`, so the column is never written as 0.
|
||||||
|
- **Refresh (D-10).** A rotation keeps the administrator-only shape. It is refused when `cabana.BackendPrincipal` returns nil or an error, or when the refresh token is older than `tokens_valid_after`.
|
||||||
|
- **Revocation (D-13).**
|
||||||
|
- `BackendCascade.OnBackendAccessRevoked` is registered only in backend mode. In the save's transaction it revokes the access and refresh tokens and deletes unused codes and consents.
|
||||||
|
- After the commit it fires `MCPSubjectChanged{Guard: backend, Kind: revoked, ClientID}` once per client.
|
||||||
|
- User rows and user-mode linked grants are never touched (tested with a frontend user's token on the same client).
|
||||||
|
- **My account (D-12, C4).**
|
||||||
|
- Section `mcp_connections`: the status is the connector address. Rows are ordered by `last_used_at DESC NULLS LAST`, then `created_at DESC`.
|
||||||
|
- Each row shows the client name, falling back to the client_id, the scope labels from `cabana.TokenScopeLabels` without `offline_access`, and Connected plus Last used or Never used.
|
||||||
|
- Item action `revoke`: Danger, with a Confirm naming `:title`. It runs on cabana's transaction.
|
||||||
|
- **Admin-wide screen (D-12, C5).**
|
||||||
|
- `golem15.oauthserver.mcpconnections` reads a derived table over the backend consents joined to `backend_users` and the clients.
|
||||||
|
- Columns: administrator, email, client, scopes, created_at, last_used_at. 20 per page, no toolbar buttons, no recordUrl, bulk `revoke`.
|
||||||
|
- The permission `golem15.oauthserver.manage_mcp_connections` (no default role) and the side-menu entry `mcp_connections` (icon network, after Clients) exist only in backend mode, so `controllers.AdminControllers(nil)` still returns exactly two controllers.
|
||||||
|
- **Docs and copy.** The README has a "Backend-subject mode" section plus the new config rows, routes and API reference entries. en and pl lang files have the `account.*` and `mcp_connections.*` keys and `permissions.manage_mcp_connections`, with the UI-SPEC copy.
|
||||||
|
|
||||||
|
## Task Commits
|
||||||
|
|
||||||
|
All in `../sm-oauthserver-plugin` (branch master, not pushed):
|
||||||
|
|
||||||
|
1. **Task 1 (tracer): backend-subject MCP sign-in for administrators** - `6996ffe` (feat)
|
||||||
|
2. **Task 2: refresh rotation and in-transaction revocation of administrator grants** - `9b97466` (feat)
|
||||||
|
3. **Task 3: My account MCP connections and the admin-wide MCP connections screen** - `4c209c1` (feat)
|
||||||
|
|
||||||
|
Tracer gate: auto mode is off, and human_verify_mode is end-of-phase with an automated-only `<verify>`. TestBackendModeSmoke ran again with the user-mode smokes (PASS, not skipped), so expansion continued.
|
||||||
|
|
||||||
|
## Files Created/Modified
|
||||||
|
|
||||||
|
- `config/config.yaml`, `servers.go`: the new keys, `Config.MCPSubjectMode`/`MCPConsentPath`/`OIDCEnabled`/`BackendMode()`, the backend-mode `NewServers` branch
|
||||||
|
- `routes.go`: OIDC groups gated by `oidc.enabled`, authorized apps by `oidc.enabled || user mode`, user consent JSON user mode only
|
||||||
|
- `plugin.go`: publishes `pact.MCPAdminConsent` and registers `BackendCascade` in backend mode only
|
||||||
|
- `updates/202611200001_add_golem15_oauthserver_backend_subjects.go`: the migration and its rollback (deletes backend grants first)
|
||||||
|
- `models/consent.go`: `BackendUserID *uint`. No existing field type changed.
|
||||||
|
- `classes/mcp_backend_subject.go`: `SubjectModeUser`/`SubjectModeBackend`, `WithBackendSubject`, the backend locks, `WithinBackendGrantsLock`, `BackendGrantRef`, `RevokeBackendGrants`, `FireBackendRevokedAfterCommit`
|
||||||
|
- `classes/mcp_store.go`, `classes/lazy.go`: the backend branches; `MCPStore` carries the app
|
||||||
|
- `classes/mcp_verifier.go`: `verifyBackend`, which also stamps the backend consent's last use
|
||||||
|
- `classes/backend_cascade.go`: the listener
|
||||||
|
- `controllers/mcp_admin_consent.go`: the provider
|
||||||
|
- `controllers/mcp_connections.go`, `controllers/mcpconnections/config_list.yaml`, `models/mcp_connection.go`, `models/mcpconnection/columns.yaml`: the admin-wide screen
|
||||||
|
- `account.go`, `admin.go`, `admin_permissions.go`, `admin_navigation.go`: the My account section and the backend-mode admin surface
|
||||||
|
- `lang/en/lang.yaml`, `lang/pl/lang.yaml`: copy
|
||||||
|
- `harness_test.go` (`bootBackendMode`, `adminAccount`, `adminLogin`), `admin_smoke_test.go` (`admin` now delegates to `adminAccount`), and three new smoke tests
|
||||||
|
- `README.md`
|
||||||
|
|
||||||
|
## Decisions Made
|
||||||
|
|
||||||
|
See key-decisions in the frontmatter. In addition:
|
||||||
|
- `MCPAdminConsentDecide` intersects the decision's scopes with the pending request again, as a defensive check on top of cabana's policy. It reads the pending client inside the locked transaction, before `IssueCode`.
|
||||||
|
- A verifier lookup failure (`BackendPrincipal` returns an error) answers `ErrMCPTokenInvalid`, as the plan specifies. This still fails closed.
|
||||||
|
- The admin list column is named `scopes` (the plan says `scopes_text`), so the column key in columns.yaml and the model column are the same.
|
||||||
|
|
||||||
|
## Deviations from Plan
|
||||||
|
|
||||||
|
### Auto-fixed Issues
|
||||||
|
|
||||||
|
**1. [Rule 3 - Blocking] The admin-wide bulk revoke is Detached**
|
||||||
|
- **Found during:** Task 3 (design, before the first run)
|
||||||
|
- **Issue:** A non-detached cabana bulk action loads its records with `FOR UPDATE` through `ListExtendQuery`. Postgres refuses that on the derived table, because it has a LEFT JOIN and an aggregate scalar subquery.
|
||||||
|
- **Fix:** `Detached: true`. Run opens its own `lagoon.Transaction`, takes every selected administrator's backend grants lock in ascending order, revokes each pair and fires the events after commit.
|
||||||
|
- **Files modified:** `controllers/mcp_connections.go`
|
||||||
|
- **Commit:** `4c209c1`
|
||||||
|
|
||||||
|
**2. [Rule 2 - Missing functionality] Backend consent last use**
|
||||||
|
- **Found during:** Task 3
|
||||||
|
- **Issue:** Under the user-mode helper, a consent stores `last_used_at` = now at consent time, so "Never used" would never appear and the list's "Last used" would only be the consent time.
|
||||||
|
- **Fix:** Backend consents are inserted with `last_used_at` NULL. The verifier stamps it on use, inside the same once-a-minute throttle as the token stamp.
|
||||||
|
- **Files modified:** `controllers/mcp_admin_consent.go`, `classes/mcp_verifier.go`
|
||||||
|
- **Commit:** `6996ffe`
|
||||||
|
|
||||||
|
**3. [Rule 3 - Blocking] `MCPConnection` implements `Fillable` and `Rules`**
|
||||||
|
- **Found during:** Task 3
|
||||||
|
- **Issue:** cabana's `BulkAction` calls `newWritableModel`, which requires `lagoon.HasFillable` and `Rules()` on the record.
|
||||||
|
- **Fix:** Both are empty, because a connection is never edited.
|
||||||
|
- **Commit:** `4c209c1`
|
||||||
|
|
||||||
|
**4. [Test helper] `adminAccount` instead of a second copy of `admin`**
|
||||||
|
- `env.admin` now delegates to the new `adminAccount`, which also returns the id, login and password. The revocation and account smokes need them. `admin_smoke_test.go` lost two unused imports.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Total deviations:** 3 auto-fixed, 1 test-helper refactor. **Impact:** no scope creep. The relation-column fallback in the objective was not needed.
|
||||||
|
|
||||||
|
## Issues Encountered
|
||||||
|
|
||||||
|
- `TestPHPMethodMap` fails in the plugin under `-short` and in the full run, before and after this plan. The PHP reference tree outside the repo gained `AuthorizeResolveUserJwtOnlyTest.php` on 2026-11-16, and its five methods are not in `php_methods.txt`. This is out of scope and logged in `deferred-items.md`. Apart from it, every plugin test passes, including the full Docker suite (`go test -count=1 ./...`).
|
||||||
|
|
||||||
|
## Known Stubs
|
||||||
|
|
||||||
|
None.
|
||||||
|
|
||||||
|
## Threat Flags
|
||||||
|
|
||||||
|
None beyond the plan's threat model. The new surfaces are:
|
||||||
|
- the admin consent provider (T-32.2-13, -14, -16)
|
||||||
|
- the verifier and refresh branches (T-32.2-15)
|
||||||
|
- the cabana listener (T-32.2-17)
|
||||||
|
- My account revoke (T-32.2-18, with the cross-admin 404 tested)
|
||||||
|
- the admin list and bulk revoke (T-32.2-19, with the 403 tested)
|
||||||
|
|
||||||
|
No code, bearer token, refresh token or request id is logged (T-32.2-20).
|
||||||
|
|
||||||
|
## Verification
|
||||||
|
|
||||||
|
- Task 1: `TestBackendModeSmoke`, `TestMCPConsentSmoke`, `TestMCPStoreSmoke`, `TestMCPTokenVerifierSmoke` and `TestMCPTokenVerifier` all PASS, none skipped.
|
||||||
|
- Task 2: `TestBackendRevocationSmoke`, `TestBackendModeSmoke`, `TestMCPRevocationSmoke` and `TestUserDeleteCascade` all PASS.
|
||||||
|
- Task 3: `TestBackendAccountSmoke`, `TestAdminSurfaceHidesCredentials` (unchanged), `TestClientsAdminSmoke`, `TestBrandingAdminSmoke` and `TestPluginManifest` all PASS. `plugin.yaml` needed no regeneration.
|
||||||
|
- Plugin `go vet ./...` is clean. Plugin `go test -short ./...` and `go test ./...` pass except the pre-existing `TestPHPMethodMap` (see Issues).
|
||||||
|
- Framework `go vet ./...` and `go test -short -count=1 ./...` pass. This plan changed nothing in the framework.
|
||||||
|
- `go.work` in the plugin (another session's edit) was never staged. Nothing was pushed or tagged.
|
||||||
|
|
||||||
|
## User Setup Required
|
||||||
|
|
||||||
|
None.
|
||||||
|
|
||||||
|
## Next Phase Readiness
|
||||||
|
|
||||||
|
- Plan 04 can mount golem15.oauthserver in the consumer app with `mcp.enabled: true`, `mcp.subject: backend`, `oidc.enabled: false` and `mcp.resource`. `mcp.consent_path` can stay empty, because it defaults to `<backend.uri>/connect`.
|
||||||
|
- Plan 05 owns the broad unit tests, the plugin release pin (the framework require is still v0.6.0 with the `replace`) and the `TestPHPMethodMap` follow-up if it wants it.
|
||||||
|
|
||||||
|
## Self-Check: PASSED
|
||||||
|
|
||||||
|
- All 12 created files exist in ../sm-oauthserver-plugin.
|
||||||
|
- Commits 6996ffe, 9b97466 and 4c209c1 are in the plugin's `git log`.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# Phase 32.2 deferred items
|
||||||
|
|
||||||
|
## From plan 32.2-03 (sm-oauthserver-plugin)
|
||||||
|
|
||||||
|
- **TestPHPMethodMap fails, unrelated to this phase.** The test in `../sm-oauthserver-plugin/php_method_map_test.go` scans the PHP reference tree at `/media/nvme/dev/jz/wavepath.org/plugins/golem15/oauthserver/tests`. That tree gained `AuthorizeResolveUserJwtOnlyTest.php` on 2026-11-16, and its five methods are missing from the plugin's `php_methods.txt`. The failure shows under `go test -short ./...` and `go test ./...` in the plugin, before and after plan 03. Fix: map the five methods in `php_methods.txt` (or mark them as not ported), in a separate quick task.
|
||||||
Reference in New Issue
Block a user