]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-14684 Fix SSF-151
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Thu, 15 Apr 2021 07:06:22 +0000 (09:06 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 15 Apr 2021 20:03:45 +0000 (20:03 +0000)
server/sonar-auth-github/src/main/java/org/sonar/auth/github/GitHubSettings.java
server/sonar-auth-gitlab/src/main/java/org/sonar/auth/gitlab/GitLabSettings.java
server/sonar-auth-saml/src/main/java/org/sonar/auth/saml/SamlSettings.java

index 05a87fb9d0c989499bb97c73a084e324f8656e0b..d6425d0d73ec4585490f4ebb8472f035c36c4b6e 100644 (file)
@@ -29,6 +29,7 @@ import org.sonar.api.config.PropertyDefinition;
 
 import static java.lang.String.valueOf;
 import static org.sonar.api.PropertyType.BOOLEAN;
+import static org.sonar.api.PropertyType.PASSWORD;
 import static org.sonar.api.PropertyType.STRING;
 
 public class GitHubSettings {
@@ -117,6 +118,7 @@ public class GitHubSettings {
         .description("Client password provided by GitHub when registering the application.")
         .category(CATEGORY)
         .subCategory(SUBCATEGORY)
+        .type(PASSWORD)
         .index(3)
         .build(),
       PropertyDefinition.builder(ALLOW_USERS_TO_SIGN_UP)
index ef521cff1ecdcd664921e3da07bc5c804c49e24c..9a9cec5cb959627416f7537b70d34f33713f214d 100644 (file)
@@ -28,6 +28,7 @@ import org.sonar.api.config.PropertyDefinition;
 
 import static java.lang.String.valueOf;
 import static org.sonar.api.PropertyType.BOOLEAN;
+import static org.sonar.api.PropertyType.PASSWORD;
 
 public class GitLabSettings {
 
@@ -106,6 +107,7 @@ public class GitLabSettings {
         .description("Secret provided by GitLab when registering the application.")
         .category(CATEGORY)
         .subCategory(SUBCATEGORY)
+        .type(PASSWORD)
         .index(4)
         .build(),
       PropertyDefinition.builder(GITLAB_AUTH_ALLOW_USERS_TO_SIGNUP)
index 88776a26acc436c11b85ea91a5a6be7abc4722f2..4cae9f55b38995c05d8f0b7b36afe3fb6c9a25eb 100644 (file)
@@ -28,6 +28,7 @@ import org.sonar.api.server.ServerSide;
 
 import static java.lang.String.valueOf;
 import static org.sonar.api.PropertyType.BOOLEAN;
+import static org.sonar.api.PropertyType.PASSWORD;
 
 @ServerSide
 public class SamlSettings {
@@ -146,6 +147,7 @@ public class SamlSettings {
         .description("X.509 certificate for the identity provider.")
         .category(CATEGORY)
         .subCategory(SUBCATEGORY)
+        .type(PASSWORD)
         .index(6)
         .build(),
       PropertyDefinition.builder(USER_LOGIN_ATTRIBUTE)