Class JmixLdapAuthoritiesPopulator

java.lang.Object
org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator
io.jmix.ldap.userdetails.JmixLdapAuthoritiesPopulator
All Implemented Interfaces:
org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator

public class JmixLdapAuthoritiesPopulator extends org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator
Extension of the default strategy for obtaining user role information from the directory. In case there is an implementation of LdapUserAdditionalRoleProvider interface it delegates fetching extra user roles to this implementation.
See Also:
  • Field Details

  • Constructor Details

    • JmixLdapAuthoritiesPopulator

      public JmixLdapAuthoritiesPopulator(org.springframework.ldap.core.ContextSource contextSource, String groupSearchBase)
  • Method Details

    • setUserAdditionalRoleProvider

      @Autowired(required=false) public void setUserAdditionalRoleProvider(LdapUserAdditionalRoleProvider ldapUserAdditionalRoleProvider)
    • getAdditionalRoles

      protected Set<org.springframework.security.core.GrantedAuthority> getAdditionalRoles(org.springframework.ldap.core.DirContextOperations user, String username)
      Overrides:
      getAdditionalRoles in class org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator