Repository navigation
feat(connectors): use the fixed sign-in redirect for all connectors - #167
Merged
Merged
Conversation
nixuuu
added a commit
that referenced
this pull request
Nov 5, 2026
Stage 5 of 7 of shared configuration across linked computers. The design is in `docs/linked-computers.md`. **What changes** - **Shared:** - connected accounts: type, name, URL, transport, all-workers/all-bots access and tool list; - their credentials and headers, encrypted with each receiver's own key; - OAuth apps (client id and secret). - **OAuth refresh:** a refresh replicates as a secret field change. A computer that holds an older refresh token defers to the newer clock. The rare "needs reconnect" race in the design is accepted. - **Identity merge:** accounts with the same type, URL and account merge and get aliases. A skill source's `credentialAccountId` maps through those aliases. - **Stays local:** - per-computer status, last use and namespace, shown as "This computer"; - worker grants, which come in stage 6; - bot grants, which stay with the bot's home. - **Notices:** conflicts and deletions show a notice with Restore. Delete keeps the encrypted credentials for the 90-day restore. Disconnect revokes access. - **Fixed OAuth redirect:** the behaviour from #162 and #167 is kept (deep link, paste-code). **Migration:** `0077_config_connectors` (`updated_at` on OAuth apps). No new proto fields. **Tests:** the connector integration suite (8 tests) covers: - an account connected on A works on B without a reconnect; - a refresh on A replicates to B, and B's older token loses; - a rename conflict, and delete with Restore; - secrets never reach history, logs or the BFF, and never cross a link with sharing off; - the source-account alias; - owner scoping; - the migration. Copy audit (`docs/copy.md` §8): - The obsolete local-only text is removed. - Delete and disconnect are worded so each says what it does.
This was referenced Nov 13, 2026
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.
The fixed sign-in redirect from #162 (
https://itsoltech.github.io/canopy/oauth/callback) now covers every OAuth connector where it is safe, not just apps registered by hand.Which connectors use it
redirect_uris = [fixed URL], and the authorize request and token exchange send the sameredirect_uri.Which keep the installation's own callback
CANOPY_OAUTH_REDIRECT_URLis set to the installation's own callback.What every connector on the fixed redirect gets: the desktop return through
canopy://oauth/callbackand the paste-code fallback. The gateway checks state as before: single-use, owner-bound, short-lived, with the full-state hash.Tests: gateway integration with the fake OAuth and local MCP fixtures:
docs/connectors.mdis updated.Copy audit (
docs/copy.md§8): no UI text changed.Still needs a live check: DCR acceptance by real providers, reconnect migration, opening the desktop deep link, and paste-code.