Cas单点登录服务搭建(一)

介绍的是windows环境

1.下载cas

https://github.com/apereo/cas-overlay-template/tree/4.2

解压到本地,用idea打开

2.修改配置

1.打开propertyFileConfigurer.xml,将cas.properties的配置修改为window环境的地址,cas.properties文件在目录在下面第二个图,将这个文件拷贝到你配置的地址

用maven打包

因为cas默认只支持https登录,要想用http登录就要修改war包下的WEB-INF\classes\services\HTTPSandIMAPS-10000001.json

第三行增加http

3.启动

启动tomcat,访问localhost:8080/cas/login

输入默认用户名密码

用户名:casuser

密码:Mellon

即可

猜你喜欢

转载自blog.csdn.net/zhangcjsyl/article/details/84656403
今日推荐