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
-
Field Summary
Modifier and TypeFieldDescriptionprotected JmixLdapGrantedAuthoritiesMapper
protected org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
protected org.springframework.ldap.core.support.LdapContextSource
protected LdapProperties
protected org.springframework.security.ldap.userdetails.UserDetailsContextMapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addLdapAuthenticationProvider
(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) protected void
configure
(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) void
Methods inherited from class io.jmix.security.StandardSecurityConfiguration
authenticationManagerBean, configure
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
Field Details
-
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
-
-
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 classStandardSecurityConfiguration
- 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)
-