使用JBoss的Spring安全性<;安全域>;
我正在使用Spring Security和基于Java的@Configuration构建一个应用程序。我们的JBoss EAP 6服务器配置了一个安全域,该域在JBoss-web.xml-File中定义 jboss web.xml使用JBoss的Spring安全性<;安全域>;,spring,authentication,jboss,spring-security,ldap,Spring,Authentication,Jboss,Spring Security,Ldap,我正在使用Spring Security和基于Java的@Configuration构建一个应用程序。我们的JBoss EAP 6服务器配置了一个安全域,该域在JBoss-web.xml-File中定义 jboss web.xml <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 4.2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd"> &l
<!DOCTYPE jboss-web PUBLIC
"-//JBoss//DTD Web Application 4.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">
<jboss-web>
<security-domain>ldapcomponent</security-domain>
</jboss-web>
JBoss身份验证需要
org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider
可通过以下方法添加:
auth.authenticationProvider(...);
除此之外
org.springframework.security.web.authentication.preauth.j2ee.J2eePreAuthenticatedProcessingFilter
应注册。如何设置使用JBoss安全域的预验证身份验证提供程序?
org.springframework.security.web.authentication.preauth.j2ee.J2eePreAuthenticatedProcessingFilter