@@ -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 |
@@ -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) |
@@ -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); | |||
} | |||
} |
@@ -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"; |