2013-10-24 213 views
0

我正在使用CAS 3.5.2和Spring CAS扩展。我试图将j_spring_cas_security_check(以及类似的注销)网址更改为security_check之类的内容。我在Spring documentation阅读,改变自定义Spring CAS j_spring_cas_security_check URL

Back in the service web application, the CasAuthenticationFilter is always listening for 
requests to /j_spring_cas_security_check (this is configurable, but we'll use the defaults 
in this introduction). 

我认为这只是可以通过将其设置为我的春季安全配置org.springframework.security.cas.ServiceProperties bean的service属性的值来改变一个虚拟URL,但在那之后我的CAS SSO开始打破。我没有在客户端或服务器端看到任何异常。

在更改此默认路径时是否存在任何明显的步骤?

回答

3

我检查了CasAuthenticationFilter的代码,发现需要将filterProcessesUrl设置为自定义URL。缺省值在构造函数中设置为/ j_spring_cas_security_check。