单点登录和CAS
目前,实现单点登录最流行的是CAS框架,这是一个由耶鲁大学主导的开源框架,github地址为:https://github.com/apereo/cas
CAS 5.X要求JDK版本最低为1.8,并且基于Spring Boot框架进行了大幅重构,其构建方式比较4.X大相径庭,另外,5.X也引入了更多的特性。具体请参见官方文档。
搭建CAS服务器
服务端实际上是一个Web工程,需要放在Web容器如Tomcat中运行。CAS官方推荐采用overlay方式来实现服务端,详见官方文档。
何为overlay,中文意思为覆盖。overlay就是官方提供给你一个模板工程,我们只需要将修改或定制的文件覆盖模板工程中对应位置的对应文件,即可实现定制化。
为何需要overlay?以下为官方的说法。
- There is no need to download/build from the source.
- Upgrades are tremendously easier in most cases by simply adjusting
the build script to download the newer CAS release. - Rather than hosting the entire software source code, as the deployer
you ONLY keep your own local customizations w