参考:https://apereo.github.io/cas/development/installation/Maven-Overlay-Installation.html
这是最简单部署CAS的方法了,之后再更新如何从源码编译。。。
下载模板工程
地址:https://github.com/apereo/cas-gradle-overlay-template/tree/4.2
## 编译
bash
./gradlew[.bat] clean build
制作war文件
bash
./gradlew[.bat] clean build explodeWar
把制作完的war放到tomcat下的webapp即可
配置在etc/cas
下
需要定制化覆盖对应内容即可,结构如下
├── src
│ ├── main
│ │ ├── java
│ │ │ └── edu
│ │ │ └── vt
│ │ │ └── middleware
│ │ │ └── cas
│ │ │ ├── audit
│ │ │ │ ├── CompactSlf4jAuditTrailManager.java
│ │ │ ├── authentication
│ │ │ │ └── principal
│ │ │ │ └── UsernamePasswordCredentialsToPrincipalResolver.java
│ │ │ ├── services
│ │ │ │ └── JsonServiceRegistryDao.java
│ │ │ ├── util
│ │ │ │ └── X509Helper.java
│ │ │ └── web
│ │ │ ├── HelpController.java
│ │ │ ├── flow
│ │ │ │ ├── AbstractForgottenCredentialAction.java
│ │ │ └── util
│ │ │ ├── ProtocolParameterAuthority.java
定制之后重新执行上面的命令即可
7 Comments
thank you for you sharing
Good article, thanks for sharing, please visit
our website
thansk for you information
terima kasih, arigatou
good article and thanks for your information
nice blog
awesome thanks