sso
2024-09-10 15:28:41 5 举报
sso
作者其他创作
大纲/内容
POST http://192.168.129.191/api/sso/auth/validate?st=1234
302 登录页面
请求sso,验证st
Get http://192.168.129.191/api/config/login?redirectUrl=http://192.168.129.191/config
http://192.168.129.191/api/sso/auth/login?from=face&redirectUrl=http://192.168.129.191/api/face/check_st?redirectUrl=http://192.168.129.191/face
生成本地token
验证st
打开 http://192.168.129.191/face
200
face
判断是否登录,否,重定向登录页面
打开 http://192.168.129.191/config
验证用户名密码
GET
返回跳转地址
第一次进入,调用check
302 http://192.168.129.191/api/sso/auth/login?from=face&redirectUrl=http://192.168.129.191/api/face/check_st?redirectUrl=http://192.168.129.191/face
POST http://192.168.129.191/api/sso/login
401
302 http://192.168.129.191/face
判断是否需要跳转
GET
http://192.168.129.191/api/sso/auth/login?from=config&redirectUrl=http://192.168.129.191/api/config/check_st?redirectUrl=http://192.168.129.191/config
Get http://192.168.129.191/api/face/check
判断是否登录,否
游览器
sso
再次请求,第一次操作
提交用户名密码
GET http://192.168.129.191/api/face/check_st??st=1234&redirectUrl=http://192.168.129.191/face
302 http://192.168.129.191/api/config/check_st??st=45678&redirectUrl=http://192.168.129.191/config
Get http://192.168.129.191/api/config/check
POST http://192.168.129.191/api/sso/auth/validate?st=45678
http://192.168.129.191/api/sso/auth/login?from=face&redirectUrl=http://192.168.129.191/api/face/check_st?redirectUrl=http://192.168.129.191/face
判断是否登录成功
302 http://192.168.129.191/api/sso/auth/login?from=config&redirectUrl=http://192.168.129.191/api/config/check_st?redirectUrl=http://192.168.129.191/config
302 http://192.168.129.191/api/face/check_st??st=1234&redirectUrl=http://192.168.129.191/face
Get http://192.168.129.191/api/face/login?redirectUrl=http://192.168.129.191/face
GET http://192.168.129.191/api/config/check_st??st=45678&redirectUrl=http://192.168.129.191/config
config
http://192.168.129.191/sso/login?from=face&redirectUrl=http://192.168.129.191/api/face/check_st?redirectUrl=http://192.168.129.191/face
0 条评论
下一页