以cas为例
1.下载cas源码
单点登录(SSO:Single Sign On),最出名的框架,莫过于CAS(Central Authentication Service)
官方网站:https://www.apereo.org/projects/cas
源码地址:https://github.com/Jasig/cas和https://github.com/Jasig/java-cas-client
帮助文档:https://wiki.jasig.org/display/CASC/CAS+Client+for+Java+3.1
2.以gradle的形式导入eclipse时需要下载许多jar ,且下载网址都是国外的,所以下载超慢,所以我们需要修改配置文件提高下载速度
3.修改配置文件以cas4.2.5为例
3.1 修改根目录下的build.gradle文件
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
maven { url "http://117.34.70.38:8081/nexus/content/groups/public" }
3.2上面文件继续修改
在subprojects下添加
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
maven { url "http://117.34.70.38:8081/nexus/content/groups/public" }
maven { url "https://build.shibboleth.net/nexus/content/repositories/releases" }
4.有关cas的资料链接如下:
单点登录CAS系列第01节之服务端搭建及源码导入IDE
https://jadyer.github.io/2015/07/16/sso-cas-server-demo/
CAS实现SSO单点登录原理
http://www.coin163.com/Java/cas/cas.html
http://www.cnblogs.com/shanyou/archive/2009/08/30/1556659.html
SSO之CAS单点登录实例演示
http://www.micmiu.com/enterprise-app/sso/sso-cas-sample/