自定义Spring CAS j_spring_cas_security_check URL

时间:2013-10-24 14:24:47

标签: spring-security cas spring-security-cas

我正在使用CAS 3.5.2和Spring CAS扩展。我正在尝试将j_spring_cas_security_check(以及用于注销的类似网址)更改为security_check之类的内容。我在Spring documentation读到了

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).

我认为这只是一个虚拟URL,可以通过在我的Spring Security配置中将其设置为service bean的org.springframework.security.cas.ServiceProperties属性的值来更改,但在更改后我的CAS {{ 1}}开始打破。我没有在客户端或服务器端看到任何异常。

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

1 个答案:

答案 0 :(得分:4)

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