我想将我的一个 Web 应用程序与 CAS 服务器连接。我也使用 SSL 设置成功创建了 CAS 服务器。但当我想设置我的 CAS 客户端时出现了歧义。
在 Spring 网站中,有一个像这样的 bean,他们说我们应该初始化并创建它。
<bean id="serviceProperties" class="org.springframework.security.cas.ServiceProperties">
<property name="service" value="https://localhost:8443/cas-sample/j_spring_cas_security_check" />
<property name="sendRenew" value="false" />
</bean>
这里的问题是我不明白什么是“服务”以及它引用的 URL 是什么?我的意思是在我的网络应用程序中,“服务”的值应该是什么?
最佳答案
摘自《Spring Security 3》一书:
The service property indicates to CAS the service to which the user will be authenticated.
例如:https://localhost:8443/your-web-application/j_spring_cas_security_check
关于java - CAS 客户端中的服务属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10845332/