]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21244 Remove external groups when disabling GitLab provisioning.
authorWojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com>
Tue, 19 Dec 2023 16:38:14 +0000 (17:38 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 22 Dec 2023 20:03:03 +0000 (20:03 +0000)
server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GitLabIdentityProvider.java

index 042c40678eb29562da622d344434aeb7404db04b..68cfe6f3594db487e0ab600f49c6eb60bfad8d83 100644 (file)
@@ -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