Spring Security SAML自动登录域中的用户

时间:2014-07-04 08:14:33

标签: spring spring-security saml-2.0 adfs2.0 spring-saml

我已经获得了弹簧安全SAML过滤器的应用程序。有ADFS 2.0的配置。服务器站在域外的机器上。我尝试在用户的域帐户上登录我的应用程序(但是显示输入域用户主体的窗口)。是否有可能为我们在Windows上登录的域用户的用户配置此自动登录?

感谢日志。

1 个答案:

答案 0 :(得分:0)

您可以通过以下方式更改bean authnContext来配置SAML请求中发送的自定义samlEntryPoint

<bean id="samlEntryPoint" class="org.springframework.security.saml.SAMLEntryPoint">
    <property name="defaultProfileOptions">
        <bean class="org.springframework.security.saml.websso.WebSSOProfileOptions">
            <property name="authnContexts"
                      value="urn:federation:authentication:windows"/>
        </bean>
    </property>
</bean>