1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| # 我使用的是5.3.9 https://github.com/apereo/cas-overlay-template.git # 按照README.md进行编译,将target/cas下的文件复制 # 新建Maven项目,将文件复制在src/main/webapp文件下 # 复制pom.xml文件中的build,properties,repositories,profiles # 如若加入JDBC,需要在pom文件profiles.profile.dependencies处添加依赖
# 修改application.properties server.ssl.enabled=true server.ssl.key-store=file:D:\tomcat.keystore server.ssl.key-store-password=changeit server.ssl.key-password=changeit server.ssl.keyAlias=tomcat # 支持JSON cas.serviceRegistry.initFromJson=true cas.logout.followServiceRedirects=true cas.logout.redirectParameter=service cas.logout.confirmLogout=false cas.logout.removeDescendantTickets=true
# 支持Http,修改webapp/WEB-INF/classes/services/HTTPSandIMAPS-10000001.json { "@class" : "org.apereo.cas.services.RegexRegisteredService", "serviceId" : "^(https|http|imaps)://.*", "name" : "HTTPS and IMAPS", "id" : 10000001, "description" : "This service definition authorizes all application urls that support HTTPS and IMAPS protocols.", "evaluationOrder" : 10000, "logoutUrl" : "https://service.cas.com:8443/logout" }
|