Repository navigation
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 0ce0c79 | Nov 18 2026, 08:30 AM |
This was referenced Nov 20, 2026
Contributor
Author
|
Replaced by stack #251: #245 (connector templates) → #246 (app identity) → #247 (My connections) → #248 (CLI). The identity no longer refreshes stored company SSO tokens: management records the app identity at company sign-in and uses it for seven days, so Google sign-in needs no offline consent. The two test race fixes moved to #249. |
tnkuehne
added a commit
that referenced
this pull request
Nov 20, 2026
First layer of the personal connections stack, which replaces #188. ## What changes The GitHub, Gmail and OneDrive templates export a `UserConnection` entrypoint, so Widefleet can show and manage a user's own connector account outside the connector's page. | Method | Result | | --- | --- | | `status()` | `{ setup, connection, account }`: setup state and the caller's saved account, without starting authorization | | `prepare({ completionUrl })` | `{ url, expiresAt }`: a single-use launch link on the connector's origin | | `disconnect()` | `{ disconnected: true }` | - **Launch links.** Opening the link starts the same provider authorization as the connector page, then returns to `completionUrl`; cancelled or failed authorization adds `connectionError=1`. - Launch tickets (4 minutes, enough for the app's own sign-in when the member has no app session yet) and return tickets (15 minutes) are stored in the existing `verification` table. - They are consumed atomically and only by the user they were issued for. Another user, a second use or an expired ticket gets `410`. - **One disconnection.** The page and the entrypoint share `disconnect()`, which revokes a managed grant before deleting the saved tokens. - Redirects to the provider and back send `Referrer-Policy: no-referrer`, so tickets do not leak through referrers. Existing accounts, the connector page and the OAuth callbacks are unchanged. ## Tests `template-oauth.test.ts` runs both new cases for all three templates, with managed and with custom credentials: - launch, provider round trip and return, including single use and another user's tickets - expired tickets and cancelled authorization - setup state, disconnection isolation between users, and revocation through the shared disconnection <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=114218949&sig=cf74b05e2fe13a3b7f3ed63df905c9d79c606fe12b62eb93ba3af5137e76edd3"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F245&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2> <!-- greptile-impact-verdict --> The latest changes appear safe to merge. <details open><summary><h3>Summary</h3></summary> Adds `UserConnection` controls to the GitHub, Gmail, and OneDrive templates. - Widefleet can manage personal connector accounts outside their pages. - Personal sign-in links return to the page that started them. </details> <!-- greptile_confidence_score:5 --> <sub>Reviews (2) · Last reviewed commit: ["Keep connector launch links valid throug..."](2612e5c) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub> <!-- /greptile_comment -->
tnkuehne
added a commit
that referenced
this pull request
Nov 20, 2026
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 · mobile menu | After · mobile menu | | --- | --- | | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/before-menu-mobile-light.png" width="300"> | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/after-menu-mobile-light.png" width="300"> | <details> <summary>Mobile workspace, light and dark</summary> | Before | After | | --- | --- | | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/before-workspace-mobile-light.png" width="300"> | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/after-workspace-mobile-light.png" width="300"> | | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/before-workspace-mobile-dark.png" width="300"> | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/after-workspace-mobile-dark.png" width="300"> | </details> **My connections (new page)** | Desktop · light | Desktop · dark | | --- | --- | |  |  | | Mobile · light | Mobile · dark | | --- | --- | | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/after-accounts-mobile-light.png" width="300"> | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/after-accounts-mobile-dark.png" width="300"> | <details> <summary>Account options, disconnection, unavailable and empty states</summary> | Account options | Confirm disconnection | | --- | --- | | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/after-mobile-account-menu.png" width="300"> | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/after-mobile-disconnect.png" width="300"> | | Unavailable and retry | No connectors | | --- | --- | | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/after-mobile-unavailable.png" width="300"> | <img src="https://gist.githubusercontent.com/tnkuehne/b4268338afa6e8170eb2930f2a8dfae9/raw/81a1e4378293100a6f79ee0ab85eaec0a2696783/after-mobile-empty.png" width="300"> | </details> 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. <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=114219041&sig=b59cad9fdefc4201c4785b1152a0951d2c29045683ab5364794e912687ad94ab"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F247&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2> <!-- greptile-impact-verdict --> The PR appears safe to merge with its intentional account-management behavior. <details open><summary><h3>Summary</h3></summary> Adds **My connections** and authenticated API routes for listing, connecting, and disconnecting personal connector accounts. - The API lists and changes a member’s personal connector accounts. - Members can manage personal connector accounts from My connections. - Node and hosted control planes now reach connector management through the app runtime. </details> <details open><summary><h3>Diagram</h3></summary> ```mermaid sequenceDiagram participant Member participant Control as Control plane participant Runtime as App runtime participant Connector Member->>Control: Open My connections Control->>Control: Find connectors and name member identity Control->>Runtime: Check status, four at a time Runtime->>Connector: UserConnection.status Connector-->>Control: Account status Member->>Control: Connect Control->>Runtime: Prepare with server-set completion URL Runtime->>Connector: UserConnection.prepare Runtime->>Runtime: Check launch origin and expiry Runtime-->>Control: Launch URL Control-->>Member: Redirect to connector ``` </details> <!-- greptile_confidence_score:5 --> <sub>Reviews (7) · Last reviewed commit: ["Use the member's company account as the ..."](2f0b150) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub> <!-- /greptile_comment -->
tnkuehne
added a commit
that referenced
this pull request
Nov 20, 2026
Two test races, carried over from #188, which is being replaced by a stack. They are independent of that feature. **Native CLI package tests** - The test installed the CLI once and built both starters inside one test with one timeout. On slower native runners, two healthy runs failed together. - Each starter now installs, checks, builds and deploys in its own test. - Commands print their command line and stream their output, so a stalled step is visible. - A timed-out test aborts its command and waits for the process to exit before it removes files. - The temporary directory is resolved first: pnpm compares its stored path literally, and macOS aliases `/var` to `/private/var`. - The missing-dependency check extracts by relative name, because Windows runners may use MSYS tar, which cannot read native absolute paths. **App disconnection browser test** - The enhanced form keeps the URL unchanged, so the test's reload could cancel the request before the server recorded it. - The test now waits until the button shows the pending removal. <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=114219120&sig=d03ed88b9a7ca5e3dd196e98be712a67ad4435fd09a332ec68e5ed5616a31b84"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F249&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2> <!-- greptile-impact-verdict --> The PR appears safe to merge; no actionable issues were found. <details open><summary><h3>Summary</h3></summary> This PR separates the native CLI starter tests and waits for the disconnection result before reloading. - Native CLI starter tests show progress and run separately. - The disconnection test waits for the removal result before reloading. </details> <!-- greptile_confidence_score:5 --> <sub>Reviews (1) · Last reviewed commit: ["Wait for the disconnection result before..."](a0f92a5) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub> <!-- /greptile_comment -->
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.
Members currently have to find each connector's own page to authorize their personal account after an administrator deploys it. This adds My connections in workspace navigation: Connect opens provider authorization in the same tab, returns to Widefleet, and reads the connector's actual account status.
UI screenshots
Members open My connections from workspace navigation. Connect is the primary row action; saved accounts show their label and an options menu for Reconnect and Disconnect. Incomplete administrator setup and unavailable status remain distinct.
Workspace entry, before and after: the previous PR revision automatically opened a connection step after accepting an invitation. The final implementation preserves the existing workspace entry and lets the member choose when to open My connections. These are different destinations for the same action, not a redesign of the Apps page. All screenshots use synthetic local fixtures. Desktop: 1440 × 1000; mobile viewport: 390 × 844.
Workspace entry · desktop · light
Workspace entry · mobile · light
Workspace entry · desktop · dark
Workspace entry · mobile · dark
My connections · desktop and mobile · light and dark
Account options, disconnection, unavailable and empty states
Account options
Confirm disconnection
Unavailable account and retry
No available connectors
User journey
UserConnectionentrypoint./api/v1/user-connectionsandwidefleet accounts list|connect|disconnect.Connector and identity contract
UserConnection.status/prepare/disconnectuses existing deployment metadata, caller proofs, app access checks, and each connector's existing storage. No schema migration, per-template registration, or central credential store.oid. Native SSO requests now obtain the same scopes as app sign-in, including Google's offline-consent parameters when Google is configured as generic OIDC. Existing SSO account tokens are refreshed under a row lock; rotated tokens are saved even if a later directory lookup fails. An expired company sign-in may require signing in again; it does not delete the connector account.Existing deployed connector copies need their updated code deployed to opt in. Neither provider callback registrations nor OAuth app ownership changes.
Validation
0ce0c79, including all four native CLI platforms, integration, runtime, packaged release, and Greptile review.Documentation: #189 (draft, based on this feature branch; publication waits for the released feature and artifacts).


Confidence Score: 5/5
The reviewed changes appear safe to merge.Summary
Adds My connections so members can connect, reconnect, and disconnect their own connector accounts without changing the normal workspace entry.
No new actionable issues found in the changes since the previous review. The earlier onboarding, reconnect, and slow-connector findings are addressed.
Diagram
Reviews (13) · Last reviewed commit: "Keep personal account connections in exp..." · Reviewed by Greptile