Package io.jmix.ldap

Class LdapSecurityConfiguration

java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
io.jmix.security.StandardSecurityConfiguration
io.jmix.ldap.LdapSecurityConfiguration
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.DefaultLdapSecurityConfiguration

public class LdapSecurityConfiguration extends StandardSecurityConfiguration
  • Field Details

    • ldapProperties

      @Autowired protected LdapProperties ldapProperties
    • ldapContextSource

      @Autowired protected org.springframework.ldap.core.support.LdapContextSource ldapContextSource
    • ldapUserDetailsContextMapper

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

      @Autowired protected org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator ldapAuthoritiesPopulator
    • grantedAuthoritiesMapper

      @Autowired protected JmixLdapGrantedAuthoritiesMapper grantedAuthoritiesMapper
  • Constructor Details

    • LdapSecurityConfiguration

      public LdapSecurityConfiguration()
  • Method Details

    • configure

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

      protected void addLdapAuthenticationProvider(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception
      Throws:
      Exception
    • onPreAuthenticationCheckEvent

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