cas无法返回6.0.3版本的ST

时间:2019-05-18 16:04:02

标签: cas java-9

1。我在cas服务器项目pom.xml中添加了其余支持

 <dependency>
        <groupId>org.apereo.cas</groupId>
        <artifactId>cas-server-support-rest</artifactId>
        <version>${cas.version}</version>
    </dependency>

2。重新启动cas服务器,然后使用邮递员请求带有参数用户名和密码的TGT

request url:https://localhost:8443/cas_server_war/v1/tickets?username=admin&password=admin
result:the rest API return https://localhost:8443/cas_server_war/v1/tickets/TGT-3-mXFuG9GXw9iMeXYa1pBACKww9JsgdsxUBDb0dV0zv0yhzUVyUVTFjnR6Q95k7Fh0534DESKTOP-97IVFIA

3。使用在步骤2中返回的网址和参数 service = https://www.baidu.com来获得ST,它应该向我返回“ ST-3-W9WaFfn2xUlTesZYtNejSW8yKRoDESKTOP-97IVFIA”之类的内容,但结果为none(这是我的日志):

2019-05-19 19:00:04,849 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO: admin
WHAT: [status=200-OK,body=ST-3-W9WaFfn2xUlTesZYtNejSW8yKRoDESKTOP-97IVFIA]
ACTION: REST_API_SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Sun May 19 19:00:04 CST 2019
CLIENT IP ADDRESS: 0:0:0:0:0:0:0:1
SERVER IP ADDRESS: 0:0:0:0:0:0:0:1
=============================================================

4。5.3.1版本没有问题(我成功获得了5.3.1版本的ST)

非常感谢!

0 个答案:

没有答案