1. cas架构
2. cas流程,参见官网
https://apereo.github.io/cas/5.2.x/protocol/CAS-Protocol.html
3. 术语:
- The
TGT
(Ticket Granting Ticket), stored in theTGC
cookie, represents a SSO session for a user.
- The
ST
(Service Ticket), transmitted as aGET
parameter in urls, stands for the access granted by the CAS server to the CASified application for a specific user.
- service:指客户端,包含url及其他信息
- TGC:服务端认证完成后的写入cookie的名称
4. 常用url及描述
/login
credential requestor / acceptor
/logout
destroy CAS session (logout)
/validate
service ticket validation
/serviceValidate
service ticket validation [CAS 2.0]
/proxyValidate
service/proxy ticket validation [CAS 2.0]
/proxy
proxy ticket service [CAS 2.0]
/p3/serviceValidate
service ticket validation [CAS 3.0]
/p3/proxyValidate
service/proxy ticket validation [CAS 3.0]
5. 参考文章
cas协议流程:客户端和服务端的交互流程
https://apereo.github.io/cas/5.2.x/protocol/CAS-Protocol.html
Cas配置文件详解
https://apereo.github.io/cas/5.2.x/installation/Configuration-Properties.html#authentication-policy
Cas管理面板:
https://apereo.github.io/cas/5.2.x/installation/Monitoring-Statistics.html
CAS 服务器搭建:
https://blog.csdn.net/oumuv/article/details/83377945
Cas客户端搭建:
https://www.cnblogs.com/whu-2017/p/11297447.html
Cas服务端自定义登录页面:
https://apereo.github.io/cas/5.3.x/installation/User-Interface-Customization-Themes.html
自定义校验器:
cas代理认证配置:
https://apereo.github.io/cas/5.2.x/integration/Delegate-Authentication.html
解决url jessionId:
https://www.cnblogs.com/fron/p/jssessionid-20161130.html?utm_source=itdadao&utm_medium=referral
6. 补充说明
客户端登登出如果想再次回到登录页面,服务端需要配置:
#登出后跳转到service路径
cas.logout.followServiceRedirects=true
相关文章:
来源:oschina
链接:https://my.oschina.net/woniuyi/blog/4454450