cas5开启Restful接口验证
- POM文件中加入rest依赖:
<!-- Restful support -->
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-rest</artifactId>
<version>${cas.version}</version>
</dependency>
- maven clean package,把war包扔到tomcat里,重新编译
- postman测试。
官方文档如下:
POST /cas/v1/tickets HTTP/1.0
'Content-type': 'Application/x-www-form-urlencoded'
username=battags&password=password&additionalParam1=paramvalue
Postman模拟如下:
喜欢请赞赏一下啦^_^