Class LdapConfiguration
java.lang.Object
fr.enedis.chutney.security.infra.ldap.LdapConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ldap.core.AttributesMapper<UserDto> attributesMapper(LdapAttributesProperties ldapAttributesProperties, String ldapGroupsPattern) org.springframework.ldap.core.support.LdapContextSourceorg.springframework.ldap.core.LdapTemplateldapTemplate(org.springframework.ldap.core.support.LdapContextSource contextSource) ldapUserDetailsService(org.springframework.ldap.core.LdapTemplate ldapTemplate, LdapAttributesProperties ldapAttributesProperties, org.springframework.ldap.core.AttributesMapper<UserDto> attributesMapper, AuthenticationService authenticationService, String userSearchScope) org.springframework.security.ldap.userdetails.UserDetailsContextMapperuserDetailsContextMapper(LdapUserDetailsService ldapUserDetailsService)
-
Constructor Details
-
LdapConfiguration
public LdapConfiguration()
-
-
Method Details
-
contextSource
@Bean @ConfigurationProperties("ldap.source") public org.springframework.ldap.core.support.LdapContextSource contextSource() -
ldapAttributesProperties
@Bean @ConfigurationProperties("ldap.attributes") public LdapAttributesProperties ldapAttributesProperties() -
ldapTemplate
@Bean public org.springframework.ldap.core.LdapTemplate ldapTemplate(org.springframework.ldap.core.support.LdapContextSource contextSource) -
attributesMapper
@Bean public org.springframework.ldap.core.AttributesMapper<UserDto> attributesMapper(LdapAttributesProperties ldapAttributesProperties, @Value("${ldap.groups-pattern}") String ldapGroupsPattern) -
ldapUserDetailsService
@Bean public LdapUserDetailsService ldapUserDetailsService(org.springframework.ldap.core.LdapTemplate ldapTemplate, LdapAttributesProperties ldapAttributesProperties, org.springframework.ldap.core.AttributesMapper<UserDto> attributesMapper, AuthenticationService authenticationService, @Value("${ldap.user-search-scope:null}") String userSearchScope) -
userDetailsContextMapper
@Bean public org.springframework.security.ldap.userdetails.UserDetailsContextMapper userDetailsContextMapper(LdapUserDetailsService ldapUserDetailsService)
-