Repository navigation
fix(oauth): add Atlassian sites and Notion workspaces on the same login - #9760
Merged
Merged
Conversation
Atlassian keeps one grant per login and adds each consented site to it, so connecting the same login for another Confluence or Jira site was refused as an already connected account. Treat it as a refresh of that account, which keeps the new grant; every other provider still refuses a duplicate.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
[Medium impact] The PR appears safe to merge; no blocking issue remains. SummaryThis PR refreshes an existing Atlassian account when the same login grants another site. It also records Notion workspaces separately and lets older connections gain their missing workspace on reconnect.
|
A Notion token reaches one workspace, but Sim keyed Notion accounts on the person alone, so a second workspace on the same login was refused. Record the workspace as the tenant. A connection saved before then takes on its workspace when the person reconnects, and must be reconnected before another workspace is added so it is never overwritten. Other providers keep treating a missing tenant as distinct.
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
6 tasks done
This branch was successfully 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.
Summary
accessible-resourcesgrantSpansSites, andresolveAccountWritetreats that same-login connect as a refresh of the existing account. Every other provider still refuses a duplicate, and a different Atlassian login is still its own accountbot.workspace_idfrom/v1/users/meas the tenanttenantRecordedLater; everywhere else a missing tenant still never matches anotherType of Change
Testing
multiple-provider-accounts.integration.tson real Postgres: adding a site to the same Atlassian login refreshes that account's tokens instead of failing; a different login is still a second account. The first case failed before the fix with the reported error. Ran on both the push and the SQL migration provisioning paths, together withtool-permissions.integration.tstool-permissions.integration.tscase for Salesforce null tenants unchanged and passinglib/credential-groupsand personal search integration unit suites, biome on changed files,check:comment-hygiene,check:utils,check:test-patterns,check:source-conventions,check:file-names,check:explicit-any,check:boundaries,check:api-validation:strict; type-check on pre-pushcheck:auditsand the full suite run in CIChecklist
test-auditauthoring gate)