From 66373c04544c9727fc42b95b8ac5439276b2a743 Mon Sep 17 00:00:00 2001 From: Wojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:38:14 +0100 Subject: [PATCH] SONAR-21244 Remove external groups when disabling GitLab provisioning. --- .../java/org/sonar/auth/gitlab/GitLabIdentityProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5