前期准备:
服务端官⽅下载:https://github.com/apereo/cas-overlay-template
客户端官⽅下载:https://githu b.com/cas-projects/cas-sample-java-webapp
客户端配置官⽅⽂档:https://github.com/apereo/ja va-cas-client application.properties
配置官⽅⽂档CAS Configuration-Properties : https://apereo. github.io/cas/5.0.x/installation/Configuration-Properties.html CAS REST-protocol
认证官⽅⽂档: https://apereo.github.io/cas/5.0.x/protocol/REST-Protocol.html
CAS 类说明 http://static.javadoc.i o/org.apereo.cas/cas-server/5.1.0-RC1/overview-summary.html
CAS 5.3.X 官⽹ :https://apereo. github.io/cas/5.3.x/index.htm
开始搭建服务端
1.服务器搭建 https://github.com/apereo/cas-overlay-template 下载cas-overlay-template,在解压后的⽂件路径 下执⾏maven命令build package,会下载依赖构建war包,在target⽂件夹下⽣成cas.war 复制 cas.war包到tomcat的webapp⽬录下,运⾏start.up,访问http://localhost:8080/cas/login; 可以看到登录⽤户名和密码可以输⼊casuser和Mellon,这是初始配置⽂件默认的,⽂件位于apachetomcat-8.5.16\webapps\cas\WEB-INF\classes下的application.properties
登录成功可以看到
自此,静态cas服务端搭建成功
文章来源于51cto学院 (http://edu.51cto.com/course/15020.html?source=so)