aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-auth-gitlab
diff options
context:
space:
mode:
authorWojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com>2023-12-19 17:38:14 +0100
committersonartech <sonartech@sonarsource.com>2023-12-22 20:03:03 +0000
commit66373c04544c9727fc42b95b8ac5439276b2a743 (patch)
tree60866198f4748c3573f78fc8fc0c714cc3409631 /server/sonar-auth-gitlab
parenta527175ce6ec79a7c3ff6de4405af97fff37371f (diff)
downloadsonarqube-66373c04544c9727fc42b95b8ac5439276b2a743.tar.gz
sonarqube-66373c04544c9727fc42b95b8ac5439276b2a743.zip
SONAR-21244 Remove external groups when disabling GitLab provisioning.
Diffstat (limited to 'server/sonar-auth-gitlab')
-rw-r--r--server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GitLabIdentityProvider.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GitLabIdentityProvider.java b/server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GitLabIdentityProvider.java
index 042c40678eb..68cfe6f3594 100644
--- a/server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GitLabIdentityProvider.java
+++ b/server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GitLabIdentityProvider.java
@@ -42,6 +42,7 @@ public class GitLabIdentityProvider implements OAuth2IdentityProvider {
public static final String API_SCOPE = "api";
public static final String READ_USER_SCOPE = "read_user";
+ public static final String KEY = "gitlab";
private final GitLabSettings gitLabSettings;
private final ScribeGitLabOauth2Api scribeApi;
private final GitLabRestClient gitLabRestClient;
@@ -54,7 +55,7 @@ public class GitLabIdentityProvider implements OAuth2IdentityProvider {
@Override
public String getKey() {
- return "gitlab";
+ return KEY;
}
@Override