Commit 31e637b
authored
fix: detect Confluence Cloud instances in Multi-Cloud OAuth mode (sooperset#586)
* fix: detect Confluence Cloud instances in Multi-Cloud OAuth mode
When using Multi-Cloud OAuth with BYOT (Bring Your Own Token) flow,
Confluence's is_cloud property incorrectly returned false because it
only checked the URL pattern. In Multi-Cloud setups, the URL may be
None or empty as requests use api.atlassian.com with a cloud_id.
This fix ensures that OAuth configurations with a cloud_id are always
treated as Cloud instances, enabling proper v2 API adapter activation
and preventing authentication failures.
The implementation matches the fix already applied to Jira in PR sooperset#581.
Reported-by: Ian
Github-Issue: sooperset#580
* chore: revert uv.lock changes from previous commit
Reverts unintended uv.lock changes that were included in the fix for
Confluence Cloud detection in Multi-Cloud OAuth mode.1 parent 77095be commit 31e637b
File tree
2 files changed
+35
-1
lines changed- src/mcp_atlassian/confluence
- tests/unit/confluence
2 files changed
+35
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
0 commit comments