Browse Source

SONAR-7219 Remove sonar.security.updateUserAttributes property

tags/5.4-M10
Julien Lancelot 8 years ago
parent
commit
6c1bb2ac26

+ 1
- 1
server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb View File

@@ -148,7 +148,7 @@ class PluginRealm
end
else
# Existing user
if details && Api::Utils.java_facade.getSettings().getBoolean('sonar.security.updateUserAttributes')
if details
user.name = details.getName()
user.email = details.getEmail()
end

+ 0
- 7
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java View File

@@ -133,13 +133,6 @@ public class CorePropertyDefinitions {
.defaultValue(String.valueOf(true))
.hidden()
.build(),
PropertyDefinition.builder(CoreProperties.CORE_AUTHENTICATOR_UPDATE_USER_ATTRIBUTES)
.name("Update user attributes")
.description("When using the LDAP or OpenID plugin, at each login, the user attributes (name, email, ...) are re-synchronized")
.hidden()
.type(PropertyType.BOOLEAN)
.defaultValue(String.valueOf(true))
.build(),
PropertyDefinition.builder(CoreProperties.CORE_AUTHENTICATOR_IGNORE_STARTUP_FAILURE)
.name("Ignore failures during authenticator startup")
.type(PropertyType.BOOLEAN)

+ 1
- 1
sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java View File

@@ -29,6 +29,6 @@ public class CorePropertyDefinitionsTest {
@Test
public void all() {
List<PropertyDefinition> defs = CorePropertyDefinitions.all();
assertThat(defs.size()).isGreaterThan(10);
assertThat(defs.size()).isGreaterThan(9);
}
}

+ 2
- 0
sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java View File

@@ -242,7 +242,9 @@ public interface CoreProperties {

/**
* @since 3.6
* @deprecated since 5.4. This feature is not supported anymore. See http://jira.sonarsource.com/browse/SONAR-7219
*/
@Deprecated
String CORE_AUTHENTICATOR_UPDATE_USER_ATTRIBUTES = "sonar.security.updateUserAttributes";

String SERVER_VERSION = "sonar.core.version";

Loading…
Cancel
Save