CAS之用户认证流程

SSO协议规范可分为三个部分:
1 用户认证流程
2 用户登陆流程
3 用户退出流程

本文讲第一点
用户认证流程:
1: http request
浏览器 to sso client(service)
url:http://ssoclient

http response
sso client to 浏览器(302跳转到ssoserver)
Location:http://ssoserver?service=http://ssoclient

2:http request
浏览器 - sso server
http://ssoserver?service=http://ssoclient

response (登陆页面)
http://ssoserver/login.html

3:浏览器 - sso server
http request
http://ssoserver/login.html?username=xuly&password=123456&service=http://ssoclient

response
Set-Cookie:设置TGC [b](这个是核心)[/b]
Location:http://ssoclient?ticket=$#^%#^%#^ [b](登陆成功直接颁发ticket)[/b]

4 浏览器 - ssoclient
http request
http://ssoclient?ticket=$#^%#^%#^

response
在第5步解释

5 ssoclient - ssoserver (在CASFilter中执行这次请求)
http request
http://ssoserver/proxyValidate?ticket=464243&service=http://ssoclient/ddd

response
返回username等信息
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值