- 不需要下载完整版 cas,只需下载 cas-overlay-template.
- 使用cas-overlay-template生成cas-server的war包,并部署在tomcat中
- 配置https访问
- 找到war包中的application.properties文件配置mysql数据库.demo中已配好.
- 创建cas客户端,引入cas-client-core,auto-config支持,并声明cas服务端.
- 在cas服务端使用json 声明 客户端service,在maven中添加json支持依赖.
- cas客户端登录后跳转出现PKIX path building failed
- reference:
https://apereo.github.io/cas/5.0.x/installation/JSON-Service-Management.html https://apereo.github.io/cas/5.0.x/installation/Service-Management.html https://apereo.github.io/cas/5.0.x/installation/Configuration-Properties.html#service-registry https://apereo.github.io/cas/5.0.x/installation/Configuration-Properties.html#resource-based-service-registry