Package io.jmix.ldap

Class LdapActiveDirectorySecurityConfiguration

java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
io.jmix.security.StandardSecurityConfiguration
io.jmix.ldap.LdapActiveDirectorySecurityConfiguration
All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>, org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
Direct Known Subclasses:
LdapAutoConfiguration.DefaultLdapActiveDirectorySecurityConfiguration

public class LdapActiveDirectorySecurityConfiguration extends StandardSecurityConfiguration
  • Field Details

    • ldapProperties

      @Autowired protected LdapProperties ldapProperties
    • ldapUserDetailsContextMapper

      @Autowired protected org.springframework.security.ldap.userdetails.UserDetailsContextMapper ldapUserDetailsContextMapper
    • grantedAuthoritiesMapper

      @Autowired protected JmixLdapGrantedAuthoritiesMapper grantedAuthoritiesMapper
  • Constructor Details

    • LdapActiveDirectorySecurityConfiguration

      public LdapActiveDirectorySecurityConfiguration()
  • Method Details

    • configure

      protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception
      Overrides:
      configure in class StandardSecurityConfiguration
      Throws:
      Exception
    • activeDirectoryLdapAuthenticationProvider

      protected org.springframework.security.authentication.AuthenticationProvider activeDirectoryLdapAuthenticationProvider()
    • onPreAuthenticationCheckEvent

      @EventListener @Order(990) public void onPreAuthenticationCheckEvent(PreAuthenticationCheckEvent event)