java - CAS 客户端中的服务属性

标签 java spring-security cas

我想将我的一个 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/

相关文章:

java - 使用哈希码在 Java 中实现 Dijkstra 算法

java - Java 中的 Google App Engine 崩溃并出现 'AccessControlException: access denied...' 异常

spring-security - Spring Boot + 安全 + 多 HTTP Web 配置

java - 在 AbstractJdbcUsernamePasswordAuthenticationHandler 中获取 Request 对象

java - 如何将 CAS 身份验证与 Apache wicket 应用程序集成?

java - 如何了解 ViewPager 中页面的状态

java - 使用正则表达式检测特殊字符串并仅替换其中的一部分

spring - 登录时清除 Spring session ?

java - Spring Security getAuthentication() 返回 null

c# - 获取 .NET 应用程序的当前/事件安全区域?