PLUGINAPI-203 Add supportsScopedOrganizationTokens flag to WebService#306
Merged
aurelien-poscia-sonarsource merged 1 commit intoJul 24, 2026
Conversation
Adds a new per-action boolean flag to NewAction/Action, following the existing internal/post pattern, so SonarQube Cloud can declare which WS actions accept authentication via a scoped organization token.
aurelien-poscia-sonarsource
force-pushed
the
feature/ap/SC-53831-support-scoped-organization-tokens-flag
branch
from
July 24, 2026 09:38
8ba38f3 to
57d8ed0
Compare
|
aurelien-poscia-sonarsource
enabled auto-merge (rebase)
July 24, 2026 09:49
dorian-burihabwa-sonarsource
self-requested a review
July 24, 2026 14:21
dorian-burihabwa-sonarsource
approved these changes
Jul 24, 2026
dorian-burihabwa-sonarsource
left a comment
There was a problem hiding this comment.
The change looks good to me but I would suggest renaming the getter for the new flag as it already has an active form.
aurelien-poscia-sonarsource
deleted the
feature/ap/SC-53831-support-scoped-organization-tokens-flag
branch
July 24, 2026 14:28
Code Review ✅ ApprovedAdds the supportsScopedOrganizationTokens boolean flag and fluent setter to WebService actions for SOT authentication documentation. No issues found. OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
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
supportsScopedOrganizationTokenstoWebService.NewAction/Action(org.sonar.api.server.ws), following the existinginternal/postpattern (mutable field + fluent setter onNewAction, immutable field + getter onAction).WebServiceTest'sMetricWsfixture to cover both the default (false) and an explicittrueoverride.Tracked in PLUGINAPI-203. SonarQube Cloud's
GET api/webservices/listserialization (SC-53832) depends on this being released, sincesonarcloud-corepinssonar-plugin-apiat a released version rather than a local build.Test plan
./gradlew :plugin-api:test --tests "org.sonar.api.server.ws.WebServiceTest"passes