Repository navigation
app/: the account page's connected apps, GET and DELETE /api/ui/me/connections (sc-8900) - #108
Merged
Merged
Conversation
…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
force-pushed
the
app-connections
branch
from
December 3, 2026 03:19
dab7601 to
de8e8e0
Compare
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.
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'sOAuth::connectionsanddisconnect).GET /api/ui/me/connectionsreturns{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.verifiedsays 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 theoauth,meandsign_intests all pass.