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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JmixLdapGrantedAuthoritiesMapperprotected LdapPropertiesprotected org.springframework.security.ldap.userdetails.UserDetailsContextMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.authentication.AuthenticationProviderprotected voidconfigure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) voidMethods inherited from class io.jmix.security.StandardSecurityConfiguration
authenticationManagerBean, configureMethods 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
-
ldapUserDetailsContextMapper
@Autowired protected org.springframework.security.ldap.userdetails.UserDetailsContextMapper ldapUserDetailsContextMapper -
grantedAuthoritiesMapper
-
-
Constructor Details
-
LdapActiveDirectorySecurityConfiguration
public LdapActiveDirectorySecurityConfiguration()
-
-
Method Details
-
configure
protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception - Overrides:
configurein classStandardSecurityConfiguration- Throws:
Exception
-
activeDirectoryLdapAuthenticationProvider
protected org.springframework.security.authentication.AuthenticationProvider activeDirectoryLdapAuthenticationProvider() -
onPreAuthenticationCheckEvent
@EventListener @Order(990) public void onPreAuthenticationCheckEvent(PreAuthenticationCheckEvent event)
-