diff options
author | Revanshu Paliwal <revanshu.paliwal@sonarsource.com> | 2022-08-24 14:58:56 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-08-25 20:03:09 +0000 |
commit | 1e297c135a922f1a1049ed9ff5169f25e19658d8 (patch) | |
tree | e10594a014b6c863e40f20ef3bf90b5b71a7f761 /server/sonar-auth-bitbucket | |
parent | 78129d971fdf779562a16ac8dccf159e8d1c9388 (diff) | |
download | sonarqube-1e297c135a922f1a1049ed9ff5169f25e19658d8.tar.gz sonarqube-1e297c135a922f1a1049ed9ff5169f25e19658d8.zip |
SONAR-17226 Display authentication-related settings in a more intuitive way
Diffstat (limited to 'server/sonar-auth-bitbucket')
-rwxr-xr-x | server/sonar-auth-bitbucket/src/main/java/org/sonar/auth/bitbucket/BitbucketSettings.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-auth-bitbucket/src/main/java/org/sonar/auth/bitbucket/BitbucketSettings.java b/server/sonar-auth-bitbucket/src/main/java/org/sonar/auth/bitbucket/BitbucketSettings.java index 0cc496bf99d..29b9bdb203e 100755 --- a/server/sonar-auth-bitbucket/src/main/java/org/sonar/auth/bitbucket/BitbucketSettings.java +++ b/server/sonar-auth-bitbucket/src/main/java/org/sonar/auth/bitbucket/BitbucketSettings.java @@ -23,7 +23,6 @@ import java.util.Arrays; import java.util.List; import java.util.function.Supplier; import javax.annotation.CheckForNull; -import org.sonar.api.CoreProperties; import org.sonar.api.PropertyType; import org.sonar.api.config.Configuration; import org.sonar.api.config.PropertyDefinition; @@ -40,6 +39,7 @@ public class BitbucketSettings { public static final String WORKSPACE_ALLOWED_LIST = "sonar.auth.bitbucket.workspaces"; public static final String DEFAULT_API_URL = "https://api.bitbucket.org/"; public static final String DEFAULT_WEB_URL = "https://bitbucket.org/"; + public static final String CATEGORY = "authentication"; public static final String SUBCATEGORY = "bitbucket"; private final Configuration config; @@ -83,7 +83,7 @@ public class BitbucketSettings { PropertyDefinition.builder(ENABLED) .name("Enabled") .description("Enable Bitbucket users to login. Value is ignored if consumer key and secret are not defined.") - .category(CoreProperties.CATEGORY_ALM_INTEGRATION) + .category(CATEGORY) .subCategory(SUBCATEGORY) .type(PropertyType.BOOLEAN) .defaultValue(String.valueOf(false)) @@ -92,21 +92,21 @@ public class BitbucketSettings { PropertyDefinition.builder(CONSUMER_KEY) .name("OAuth consumer key") .description("Consumer key provided by Bitbucket when registering the consumer.") - .category(CoreProperties.CATEGORY_ALM_INTEGRATION) + .category(CATEGORY) .subCategory(SUBCATEGORY) .index(2) .build(), PropertyDefinition.builder(CONSUMER_SECRET) .name("OAuth consumer secret") .description("Consumer secret provided by Bitbucket when registering the consumer.") - .category(CoreProperties.CATEGORY_ALM_INTEGRATION) + .category(CATEGORY) .subCategory(SUBCATEGORY) .index(3) .build(), PropertyDefinition.builder(ALLOW_USERS_TO_SIGN_UP) .name("Allow users to sign-up") .description("Allow new users to authenticate. When set to 'false', only existing users will be able to authenticate.") - .category(CoreProperties.CATEGORY_ALM_INTEGRATION) + .category(CATEGORY) .subCategory(SUBCATEGORY) .type(PropertyType.BOOLEAN) .defaultValue(String.valueOf(true)) @@ -115,7 +115,7 @@ public class BitbucketSettings { PropertyDefinition.builder(WORKSPACE_ALLOWED_LIST) .name("Workspaces") .description("Only members of at least one of these workspace will be able to authenticate. Keep empty to disable workspace restriction. You can use either the workspace name, or the workspace slug (ex: https://bitbucket.org/{workspace-slug}).") - .category(CoreProperties.CATEGORY_ALM_INTEGRATION) + .category(CATEGORY) .subCategory(SUBCATEGORY) .multiValues(true) .index(5) |