Repository navigation
feat(accounts): plan shared grants and incremental consent - #2478
Open
JustYannicc wants to merge 8 commits into
Open
JustYannicc wants to merge 8 commits into
JustYannicc wants to merge 8 commits into
Conversation
This was referenced Oct 31, 2026
Freeze protocol 14 and carry the identity additions as protocol 15. Follow v2 storage 4.0.17 with 4.0.18, preserving v2 OAuth refresh and account health behavior. Release-note: Feature: Apps can reuse verified identities and compatible OAuth grants without changing account IDs or app selections.
Preserve v2's personal account destinations, per-connection OAuth client behavior, source-account grant checks, and the shared consent path. Release-note: Improvement: Compatible apps can reuse verified identities and OAuth grants.
Keep v2 new-format account unlinking and OAuth pre-link checks while preserving shared-grant release, verified identity recording, and the four identity scenarios.
Preserve shared-grant consent and identity updates, with v2 credential checks applied to every connection in a consent batch.
This branch has not been deployed
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.
An account that works in one app should connect to another compatible app without another sign-in. When more permissions are needed, consent should expand that same identity without breaking the apps already using it.
This follows #2477 and includes its identity/storage changes so the branch can be tested independently. The new public
accountConnections.planOAuthreports reuse, additional consent, or an incompatible identity, placement, client, or resource. A batch uses independently authorized connection requests and one consent for their combined scopes. Grant upgrades retain the selected OAuth client, verify the returned subject and granted scopes, and commit every binding atomically. Denied, partial, wrong-account, or stale callbacks preserve the working grant. Refresh-token omission preserves the old token only for the same client and identity.Validation:
bun run checkpassed. Six named local E2E scenarios passed, covering batch consent, incremental consent with omitted refresh tokens and restart, refusal recovery, refresh/consent races, changed targets, cancellation, shared refresh, and independent reconnect/removal. The fixtures use two synthetic OAuth issuers; real vendor consent and the grouped dashboard are separate follow-ups.Built with GPT-6.1 Sol through the Codex harness in T3 Code.