Skip to content

app/: the account page's connected apps, GET and DELETE /api/ui/me/connections (sc-8900) - #108

Merged
ndbroadbent merged 1 commit into
mainfrom
app-connections
Dec 3, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
app-connections

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

The account page's connected apps, a route the web parity run found missing (sc-8900, a cutover gate), ported from server/src/oauth.rs. It returns the same JSON as today, on the OAuth server from #57 (oauth-provider-laravel's OAuth::connections and disconnect).

  • GET /api/ui/me/connections returns {connections: [{client_id, name, verified, connected_at, last_used_at}]}: the MCP clients connected to the signed-in person's account, newest first. Only their own. verified says whether VisualCI knows the client.
  • DELETE /api/ui/me/connections?client_id= returns {revoked}. It ends every connection of that app to the person: its access and refresh tokens stop working at once. Another person's connection to the same app is untouched.

There are no migrations, so this merges before the migrations squash (#107).

Test: tests/oauth.rs, the_account_page_lists_and_disconnects_ones_own_apps. Two people connect the same client: the code, then tokens. One sees only their own connection, and a signed-out request is a 401. After the disconnect, that person's access token fails verification while the other person's still verifies and is still listed.

Ran on a build-pool box with a throwaway Postgres 17: fmt, clippy -D warnings, and the oauth, me and sign_in tests all pass.

…nections lists the MCP clients connected to the signed-in person's account; DELETE /api/ui/me/connections?client_id= revokes every token that app holds for them, and no one else's
@ndbroadbent
ndbroadbent merged commit 4b81e47 into main Dec 3, 2026
12 checks passed
@ndbroadbent
ndbroadbent deleted the app-connections branch December 3, 2026 03:32
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.

1 participant