【发布时间】:2018-08-25 09:05:57
【问题描述】:
我正在尝试根据他的角色将已经通过 saml 身份验证的用户重定向到特定的默认页面。
例如:
if user has role A redirect to https://localhost:8443/myApp/A_default_page
if user has role B redirect to https://localhost:8443/myApp/B_default_page
saml 中的问题,我们只能确定一个:
<bean id="successRedirectHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler">
<!-- <property name="useReferer" value="true"/> -->
<property name="defaultTargetUrl" value="here default url "/>
任何帮助。
【问题讨论】:
标签: redirect single-sign-on spring-saml