假设目前有三个系统: cas app1 app2
当访问app1时大致请求流程为
app1-cas-app1
需实现:
app1-cas-app2
访问app1 ,重定向到cas认证, 认证成功后重定向到app2 (app2类似于门户系统) 该操作只在登录时执行
目前 CAS 默认是重定向回app1
app1系统使用Spring Security集成 CAS 可通过 SecurityConfig 实现
@Bean
public AuthenticationSuccessHandler authenticationSuccessHandler() {
SavedRequestAwareAuthenticationSuccessHandler successHandler = new SavedRequestAwareAuthenticationSuccessHandler();
successHandler.setDefaultTargetUrl(successUrl);
return successHandler;
}
但是现在另有子系统app2 没有用 Security作为安全框架 应该怎么配置?
如果我在app1的web.xml中配置
这样会导致app1的所有请求都会跳转到app2中
请各路神仙不吝赐教