我有 Spring MVC 应用程序,Spring Security 设置为使用 CAS。此外,我将 Liferay Portal 5.2.3 配置为使用 CAS。
- 我从 app_1 进行身份验证
- 打开 Liferay 门户 (app_2)
- 它不会立即检查身份验证(我看到登录链接)
- 如果我单击登录,那么 CAS 会验证用户是否已通过身份验证,并且我会自动登录。
如何在 app_1 中创建链接,建议 app_2 验证身份验证...
我有弹簧过滤器链
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
和
<security:http entry-point-ref="casAuthenticationEntryPoint" auto-config="true" >
<security:intercept-url pattern="/*/secure/**" access="ROLE_USER" />
<security:custom-filter position="CAS_FILTER" ref="casAuthenticationFilter" />
<security:anonymous enabled="false"/>
</security:http>
如果我将 app_1 中的所有 url 指向 app_2 中的安全路径,则需要进行身份验证(用户被重定向到登录页面),因此这不起作用。