aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>2024-01-16 15:35:59 +0100
committersonartech <sonartech@sonarsource.com>2024-01-23 20:04:15 +0000
commitc6471c039ede0753dc9396bb5348939f17b30665 (patch)
tree42e24172ddc2abed98f139146499cf0ccf4e83a9 /sonar-ws/src
parentee268b1caac7c777dbe612ef4cde8cbf15d00f26 (diff)
downloadsonarqube-c6471c039ede0753dc9396bb5348939f17b30665.tar.gz
sonarqube-c6471c039ede0753dc9396bb5348939f17b30665.zip
SONAR-21413 Make provisioning groups ready to handle allowed groups
Diffstat (limited to 'sonar-ws/src')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfiguration.java2
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfigurationService.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfiguration.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfiguration.java
index 9bc3fbe3efb..5a50500911a 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfiguration.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfiguration.java
@@ -21,5 +21,5 @@ package org.sonarqube.ws.client.gitlab.configuration;
public record GitlabConfiguration(boolean enabled, String applicationId, String url, String secret, boolean synchronizeGroups,
String provisioningType, boolean allowUsersToSignUp, String provisioningToken,
- String singleProvisioningGroup) {
+ String singleAllowedGroup) {
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfigurationService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfigurationService.java
index b0f530395d7..4082c0adf1a 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfigurationService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/gitlab/configuration/GitlabConfigurationService.java
@@ -45,11 +45,11 @@ public class GitlabConfigurationService extends BaseService {
"provisioningType": "%s",
"allowUsersToSignUp": "%s",
"provisioningToken": "%s",
- "provisioningGroups": ["%s"]
+ "allowedGroups": ["%s"]
}
""", gitlabConfiguration.enabled(), gitlabConfiguration.applicationId(), gitlabConfiguration.url(), gitlabConfiguration.secret(),
gitlabConfiguration.synchronizeGroups(), gitlabConfiguration.provisioningType(), gitlabConfiguration.allowUsersToSignUp(),
- gitlabConfiguration.provisioningToken(), gitlabConfiguration.singleProvisioningGroup());
+ gitlabConfiguration.provisioningToken(), gitlabConfiguration.singleAllowedGroup());
WsResponse response = call(
new PostRequest(path()).setBody(body)
);