Skip to content

Add My connections for personal connector accounts - #247

Merged
tnkuehne merged 6 commits into
feat/user-connection-identityfrom
feat/my-connections
Nov 20, 2026
Merged

tnkuehne merged 6 commits into
feat/user-connection-identityfrom
feat/my-connections

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Third layer of the personal connections stack. It brings the My connections page from #188 onto the app identity of the previous layer.

What changes

My connections is a new entry in the workspace navigation, open to every member.

  • Which connectors appear: the organization's web apps whose active deployment exports UserConnection. A catalog listing is not required, so connectors installed from a template appear right away. App access groups do not apply: members manage only their own account, while using the app still requires them.
  • Rows: each row shows the account label, Connect, or Awaiting administrator setup.
  • Account options: Reconnect and Disconnect. Disconnect asks for an inline confirmation.
  • Unreachable connectors show Could not check this account with Try again. They are never shown as disconnected.
  • No company account: in an organization that requires company SSO, a session without one, such as a recovery session, sees why instead of a list.
  • Status checks run at most four at a time, with a shared five-second deadline. Failed checks, except those cut off by the deadline, go to the existing exception reporting with the app ID and a failure kind. Connector responses are not included.

API: GET /api/v1/user-connections, POST /api/v1/user-connections/{appId}/connect (body {}), DELETE /api/v1/user-connections/{appId}.

  • Reads need platform:read; writes need platform:write.
  • Caller identity and completion URL are set by the server.

The Node control plane reaches the runtime through a shared runtimeManagementRequest, which app sign-in publication now uses as well. Hosted uses the existing APP_RUNTIME binding.

Screenshots

Synthetic fixtures: desktop 1440 × 1000, mobile 390 × 844.

Navigation, before and after

Before After
Before, desktop light After, desktop light
Before, desktop dark After, desktop dark
Before · mobile menu After · mobile menu
Mobile workspace, light and dark
Before After

My connections (new page)

Desktop · light Desktop · dark
My connections, desktop light My connections, desktop dark
Mobile · light Mobile · dark
Account options, disconnection, unavailable and empty states
Account options Confirm disconnection
Unavailable and retry No connectors

The message for a session without a company account is not in the screenshots; the integration test covers it.

Tests

  • user-connections.integration.test.ts:
    • visible connectors only, under the member's identity
    • outages vs. inaccessible apps
    • API authentication and rejected overrides
    • the concurrency limit and deadline
    • the company account as identity, and the refusal without one
  • Playwright, real company sign-in: management sign-in through the emulated Entra tenant; My connections asserts the tenant issuer and the account's object ID.
  • Playwright, with and without JavaScript: navigation, connect, reconnect, cancelled and confirmed disconnection, retry, account switching, duplicate names, incomplete setup and the empty state. Invitation acceptance still opens the workspace without status checks.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issues were found.

Summary

Adds My connections for members to manage their own connector accounts.

  • My connections gives members one place to manage connector accounts.
  • The control plane checks and changes connector accounts as the signed-in member.

Diagram

sequenceDiagram
  actor Member
  participant Page as My connections
  participant Control as Control plane
  participant Runtime as RuntimeManagement
  participant Connector as UserConnection
  Member->>Page: View accounts or choose an action
  Page->>Control: Authenticated request
  Control->>Control: Select organization and derive app identity
  Control->>Runtime: Status, prepare, or disconnect
  Runtime->>Runtime: Check organization, app, and identity issuer
  Runtime->>Connector: Invoke action as the member
  Connector-->>Runtime: Account status or launch link
  Runtime-->>Control: Checked response
  Control-->>Page: Show result or open connector
Loading

Reviews (8) · Last reviewed commit: "Use the member's company account as the ..." · Reviewed by Greptile

@tnkuehne
tnkuehne force-pushed the feat/my-connections branch from 3d171ec to 513dc72 Compare November 20, 2026 15:39
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 83592bb Nov 20 2026, 06:20 PM

@tnkuehne
tnkuehne force-pushed the feat/my-connections branch from 513dc72 to ba3f819 Compare November 20, 2026 15:47
Members find connectors that offer personal accounts under My connections
in the workspace navigation, instead of on each connector's own page. The
page lists catalog-listed web apps whose active deployment exports
`UserConnection` and that the member can access, with each account's
status. Connect and Reconnect open the provider's authorization and return
to the page; Disconnect asks for confirmation first.

Management calls connectors with the member's recorded app identity. If
company sign-in has not recorded one, or it expired, the page asks the
member to sign in again. Status checks run at most four at a time with a
shared five-second deadline; a connector that does not answer in time is
shown as unavailable rather than disconnected.

The same operations are available as `GET /api/v1/user-connections`,
`POST /api/v1/user-connections/{appId}/connect` and
`DELETE /api/v1/user-connections/{appId}`. The Node control plane reaches
the runtime through the shared management request, which app sign-in
publication now uses too.
Connectors the member cannot access stay off the list even when their
status checks miss the shared deadline. Failed checks other than deadline
cancellations are reported to exception reporting with the app and the
kind of failure, without connector responses.
The browser test signs in to management through the emulated Entra tenant,
checks that My connections asserts the recorded issuer, object ID and
directory groups, and that a member without a recorded identity signs in
again and returns to the page.
App sign-in through Widefleet admits only members with a verified email,
and management now applies the same rule.
SvelteKit rejects redirects to another origin unless the origin is named.
Connect and Reconnect now name the connector's origin, which the runtime
has already checked. The browser test serves launch links from another
origin, as real connectors do, and fails without this change.

Connectors installed from a template are not listed in the app catalog, so
they did not appear in My connections. The list now follows access rules
only: they already decide who can use a connector, and the catalog lists
apps to open.
Management now names the member's app identity from what it already knows,
so My connections no longer records an identity at sign-in, asks members to
sign in again, or filters by directory groups. Every member sees the
organization's connectors and manages their own account; using a
connector's app still requires its access groups.

A session without a company account in an organization that requires
company SSO, such as a recovery session, sees why instead of a list. The
browser test signs in through the emulated Entra tenant and checks that My
connections asserts the account's object ID.
@tnkuehne
tnkuehne force-pushed the feat/my-connections branch from 2f0b150 to 83592bb Compare November 20, 2026 18:19
@tnkuehne
tnkuehne merged commit f20c1bb into main Nov 20, 2026
14 of 15 checks passed
@tnkuehne
tnkuehne deleted the feat/my-connections branch November 20, 2026 18:19
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