Spring security Spring安全adfs身份验证
我对春天和安全很陌生。我使用基本的spring安全配置保护我的应用程序。 这是我的security.xml:Spring security Spring安全adfs身份验证,spring-security,saml-2.0,adfs,spring-saml,Spring Security,Saml 2.0,Adfs,Spring Saml,我对春天和安全很陌生。我使用基本的spring安全配置保护我的应用程序。 这是我的security.xml: <!--?xml version="1.0" encoding="UTF-8"?--> <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans"
<!--?xml version="1.0" encoding="UTF-8"?-->
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security.xsd">
<http use-expressions="true" authentication-manager-ref="authenticationManager" entry-point-ref="authenticationEntryPoint">
<csrf disabled="true" />
<intercept-url pattern="/**" access="hasRole('USER')" />
<form-login authentication-success-handler-ref="customAuthenticationSuccessHandler"
default-target-url="/#"
always-use-default-target="true"
authentication-failure-url="/login"
/>
<http-basic />
<logout />
</http>
<authentication-manager alias="authenticationManager">
<authentication-provider user-service-ref="userDao"></authentication-provider>
</authentication-manager>
</beans:beans>
我懂了:
现在我需要使用adfs服务器对用户进行身份验证。
我想我应该向给定的adfs服务器发送saml请求(或类似的smth),但不知道如何做到这一点
那么,如何使用这个adfs服务器实现身份验证呢
非常感谢您的帮助 您使用的是什么版本的AD FS?这是在什么操作系统上运行的?如果您使用的是Windows Server 2008 R2和更早版本的操作系统,则按原样提供的AD FS不支持SAML2。该登录屏幕看起来不像支持SAML2的AD FS。请参阅