cas
cas4.2.x
mryangzc
真正的大师永远都怀着一颗学徒的心,作业辅导,bug修改 昵称绿泡泡了
展开
-
一、cas4.2x学习
最近看了好多博文,很多都是4.0或者以下的教程,为了让后来人少走弯路,特此留下此文,本文选择cas 4.2.5什么是单点登录(SSO)单点登录主要用于多系统集成,即在多个系统中,用户只需要到一个中央服务器登录一次即可访问这些系统中的任何一个,无须多次登录。单点登录(Single Sign On),简称为 SSO,是目前比较流行的企业业务整合的解决方案之一。SSO的定义是在多个应用系统中,用户只需要...原创 2017-04-06 14:31:12 · 914 阅读 · 0 评论 -
二、cas4.2.x修改支持http协议
cas4.2以上的代码做了一些框架的优化,4.2以下的版本的很多配置都是写在xml文件中。4.2以上统一提取到了cas.properties文件中,所以在去掉https的时候 方式也有所变化。也可参照官网文档:https://apereo.github.io/cas/4.2.x/installation/Configuring-SSO-Session-Cookie.html进入tomcat中可以看...原创 2017-04-06 16:16:36 · 3535 阅读 · 0 评论 -
三、cas4.2.x 自定义登录页面
官方文档:https://apereo.github.io/cas/4.2.x/installation/User-Interface-Customization.html效果图:水平有限,弄不出特别好看的页面,凑合看吧,根据官方文档,首先上传你的css我是在源码中修改的,你要做好备份奥!在WEB-INF/classes/cas-theme-default.properties添加样式修改登录页面...原创 2017-04-11 15:13:30 · 2452 阅读 · 0 评论 -
四、cas4.2.x 添加验证码
看了很多添加验证码的博文,唯独没有4.2的 重点看第3条,其余的和别人博文大致相同首先在cas工程的web.xml增加验证码功能的支持 <!-- 验证码功能 --> <servlet> <servlet-name>Kaptcha</servlet-name> <servlet-class>...原创 2017-04-11 15:27:27 · 1883 阅读 · 0 评论 -
五、cas4.2.x支持MySQL数据库
这个弄了好久才终于弄好可以参照官方文档弄:https://apereo.github.io/cas/4.2.x/installation/Database-Authentication.html首先将mysql驱动jar包导入项目的lib中,然后在tomcat里找到cas的配置文件:deployerConfigContext.xml 、cas.properties 进行配置。配置deployer...原创 2017-04-06 16:28:58 · 1168 阅读 · 0 评论 -
六、cas4.2.x配置shiro
在 cas client中配置shiro,参照了好多大神的做法在客户端pom.xml中引入shiro jar包然后在web.xml中配置shiro filter <!-- Shiro Security filter --> <filter> <filter-name>shiroFilter</filter-name>...原创 2017-04-06 16:43:26 · 1099 阅读 · 0 评论 -
七、cas 4.2.5 返回更多的用户信息
1.找到cas server 中的 deployerConfigContext.xml注释掉 <!-- <bean id="attributeRepository" class="org.jasig.services.persondir.support.NamedStubPersonAttributeDao" p:backingMap-ref="attrRepoBac...原创 2017-05-09 09:01:36 · 2579 阅读 · 0 评论 -
八、cas 4.2.x 单点登出
上一篇是cas配置shiro,这次说一说单点登出.特别感谢 白夜船长大神 !cas配置shiro:http://blog.youkuaiyun.com/mr_yangzc/article/details/69396622依然给出官方文档,https://apereo.github.io/cas/4.2.x/installation/Logout-Single-Signout.html单点登出非常简单 在cl...原创 2017-04-11 14:39:13 · 3014 阅读 · 0 评论 -
web.xml 报错cvc-complex-type.2.4.a: Invalid content was found starting with element ‘cookie-config‘...
导入cas源码 web.xml一直包红叉, 发现只要加了下面两句话 就ok了 http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd原web.xml原创 2017-04-07 10:07:53 · 3366 阅读 · 0 评论