Commit 38aa163
authored
fix(oauth): trim Atlassian OAuth scopes to fix CloudFront 414 (#4388)
* fix(oauth): trim Atlassian OAuth scopes to fix CloudFront 414
* fix(oauth): restore Confluence scopes whose tools are still active
* fix(oauth): add JSM Forms scopes for form tools
* fix(oauth): restore read:issue.vote:jira scope
Jira issue retrieve tool reads fields.votes.votes and fields.votes.hasVoted
from the GET /rest/api/3/issue payload, which requires the
read:issue.vote:jira granular scope. Restoring to prevent vote data from
being omitted in retrieve responses.
* fix(oauth): drop redundant Jira granular scopes covered by classic
Atlassian recommends <50 scopes per OAuth app to keep authorize URLs
under URL-length limits. Drops 20 granular Jira read/write scopes that
are subsumed by the classic read:jira-work / write:jira-work scopes
already in the list. Existing user tokens are unaffected — Atlassian
refresh keeps originally-granted scopes; the trimmed list only applies
to new authorizations.
Kept granular scopes: delete:* (no classic equivalent) and JSM
granular scopes (separate scope family).
* fix(oauth): re-add read:issue.vote:jira to match PR description
Bugbot flagged that the previous classic-scope collapse dropped this
granular scope while the PR description still claimed it was restored.
Classic read:jira-work covers vote reads, but adding the granular
explicitly keeps the description, code, and intent aligned.1 parent add55b4 commit 38aa163
3 files changed
Lines changed: 15 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
445 | 444 | | |
446 | 445 | | |
447 | 446 | | |
| |||
451 | 450 | | |
452 | 451 | | |
453 | 452 | | |
454 | | - | |
455 | 453 | | |
456 | 454 | | |
457 | 455 | | |
| |||
460 | 458 | | |
461 | 459 | | |
462 | 460 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | 461 | | |
469 | 462 | | |
470 | 463 | | |
| 464 | + | |
471 | 465 | | |
472 | 466 | | |
473 | 467 | | |
474 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
475 | 474 | | |
476 | 475 | | |
477 | 476 | | |
| |||
494 | 493 | | |
495 | 494 | | |
496 | 495 | | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | 496 | | |
501 | 497 | | |
502 | | - | |
503 | | - | |
504 | 498 | | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | 499 | | |
514 | | - | |
515 | | - | |
516 | 500 | | |
517 | | - | |
518 | | - | |
519 | 501 | | |
520 | | - | |
521 | | - | |
522 | 502 | | |
523 | | - | |
524 | 503 | | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | 504 | | |
534 | 505 | | |
535 | 506 | | |
536 | 507 | | |
537 | 508 | | |
538 | 509 | | |
539 | 510 | | |
540 | | - | |
541 | | - | |
542 | 511 | | |
543 | 512 | | |
544 | 513 | | |
545 | 514 | | |
546 | 515 | | |
547 | 516 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | 517 | | |
555 | 518 | | |
556 | 519 | | |
| |||
559 | 522 | | |
560 | 523 | | |
561 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
562 | 528 | | |
563 | 529 | | |
564 | 530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
| |||
0 commit comments