Repository navigation
Expose personal account controls from connector templates - #245
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | b576706 | Nov 20 2026, 06:20 PM |
GitHub, Gmail and OneDrive export a `UserConnection` entrypoint with `status`, `prepare` and `disconnect`. Widefleet calls it with the caller's verified identity to show and manage that user's own account. `prepare` returns a single-use launch link on the connector's origin. Opening it starts the same provider authorization as the connector page and returns to the given completion URL afterwards. Launch and return tickets live in the existing verification table, expire after two and fifteen minutes, are consumed atomically and only by the user they were issued for. The page and the entrypoint share one disconnection, which revokes a managed grant before deleting the saved tokens.
A member without an app session first signs in to the app, which can take longer than two minutes with multi-factor sign-in or consent. Launch links now stay valid for four minutes, within the five minutes Widefleet accepts.
tnkuehne
force-pushed
the
feat/user-connection-entrypoint
branch
from
November 20, 2026 18:19
2612e5c to
b576706
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.
First layer of the personal connections stack, which replaces #188.
What changes
The GitHub, Gmail and OneDrive templates export a
UserConnectionentrypoint, so Widefleet can show and manage a user's own connector account outside the connector's page.status(){ setup, connection, account }: setup state and the caller's saved account, without starting authorizationprepare({ completionUrl }){ url, expiresAt }: a single-use launch link on the connector's origindisconnect(){ disconnected: true }completionUrl; cancelled or failed authorization addsconnectionError=1.verificationtable.410.disconnect(), which revokes a managed grant before deleting the saved tokens.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.tsruns both new cases for all three templates, with managed and with custom credentials:

Confidence Score: 5/5
The PR appears safe to merge; no actionable defects remain in the reviewed changes.Summary
Adds personal account controls to the GitHub, Gmail, and OneDrive templates.
No new actionable issues were found. PR #246’s caller matches the new entrypoint contract.
Reviews (3) · Last reviewed commit: "Keep connector launch links valid throug..." · Reviewed by Greptile