Repository navigation
Connected-account design follows provider token lifecycles - #860
Merged
Merged
Conversation
Signed-off-by: zlareb1 <[email protected]>
7 tasks done
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.
Related: #539
Changelog category (leave one):
Why
The connected-account design assumes Notion supplies no refresh token and requires a provider email. Its authorization guide describes rotating access and refresh tokens; read-content-only capability does not promise an owner email. Implementing the existing text would persist the wrong credential or refuse a valid least-privilege connection.
Scope and risk
This corrects the planned connected-account contract in one architecture page. All three providers retain sealed refresh credentials and memory-only access tokens. Refresh cannot restore a disconnected generation, and an uncertain provider outcome does not authorize a blind rotation retry. Display email remains optional metadata, never account ownership or namespace authority.
The design records Google project-wide revocation, Linear's documented refresh recovery window, and the limits of Notion's access-token revocation and opaque introspection scope. Local inactivation and source retirement remain authoritative even when remote revocation cannot be established. These choices avoid promising guarantees the providers do not document.
Primary references: Notion authorization, refresh, capabilities, revocation, Google authorization, and Linear authorization.
Compatibility, rollout and rollback
Tests
AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: Codex wrote the documentation; fresh independent whole-diff review and final-head CI are required before merge.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist