一、说明
官方提供的案例里都是通过overlay的方式运行,没有直接通过springboot方式启动的案例。
本文主要介绍如何通过springboot本地启动cas-server的方法,该案例基于CAS 5.3.16
版本运行,如需运行6.x版本,可根据需求调整POM里的版本号cas.version
github地址:https://github.com/tiswong/cas-server
二、使用方法
下载demo
git clone https://github.com/tiswong/cas-server.git
导入idea后, 直接运行 CasWebApplication
方法,启动成功后,
在浏览器输入:http://127.0.0.1:8080/cas/login
默认用户名密码:casuser::Mellon
该demo中默认关闭了ssl,如需开启,可调整如下application.properties里配置
#server.ssl.key-store=file:/etc/cas/thekeystore
#server.ssl.key-store-password=changeit
#server.ssl.key-password=changeit
运行成功界面: