fix(oauth): reject user-scoped clients on single-workspace hosts - #1894
fix(oauth): reject user-scoped clients on single-workspace hosts#1894The-AarushiSingh wants to merge 4 commits into
Conversation
|
cloud 13of16 is |
|
Verdict: needs a decision from Rhys (mechanism question) — otherwise close but incomplete. Open 3 days; merges cleanly onto current Ran on the PR merged onto Decision needed
Blocking regardless of the decision
Nothing pushed — the mechanism decision should come first so the contributor isn't reworked twice. |
- Reject owner: 'user' when deps.subject === 'local' - Keep user-owned OAuth clients working for other subjects - Update mismatch error to avoid 'Workspace' terminology Closes UsefulSoftwareCo#1850
46b3736 to
26e10d2
Compare
Fixes #1850
On local/desktop the executor subject is
LOCAL_SUBJECT("local") and every connection is org-scoped.createClientstill acceptedowner: "user", so those clients could never be used. The later mismatch error also used cloud wording (“A Workspace connection must use a Workspace app.”).Change
createClient, rejectowner: "user"whendeps.subject === "local".test-subject/subject-a/subject-b, so existing user-client tests are unchanged.An org connection must use an org-owned OAuth client.No new config. No silent remap of
user→org.Test
"local"+owner: "user"returns the new error.