Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跨域sso问题 #19

Closed
mrqinlin opened this issue May 3, 2019 · 4 comments
Closed

跨域sso问题 #19

mrqinlin opened this issue May 3, 2019 · 4 comments

Comments

@mrqinlin
Copy link

mrqinlin commented May 3, 2019

sso的各个系统在不同的域下,不同域下cookie vue_admin_template_token没法共享,有没有好的解决办法?

@dolyw
Copy link
Owner

dolyw commented May 5, 2019

你的多个系统应该可以通过二级域名共享Cookie吧

@mrqinlin
Copy link
Author

mrqinlin commented May 5, 2019

@wang926454 sso的场景是一级域名不同,在不同的域下

@dolyw
Copy link
Owner

dolyw commented May 5, 2019

你这不是为难胖虎我吗?这就有点麻烦了,我没遇到过,也只能查资料问人了,你自己也先查查资料吧

@mrqinlin
Copy link
Author

mrqinlin commented May 5, 2019

@wang926454 哈哈,多谢了!
一种可行的方式应该是这样:
1、统一认证系统假如叫sso,不同域子系统a被访问,先检查a的token是否存在,存在则调用sso的token权限检查,决定是否重定向至sso的统一登录页面。
2、不存在则携带a的重定向url重定向至sso的统一登录页面,登录成功,返回token写至a的域下。

@dolyw dolyw pinned this issue May 15, 2019
@dolyw dolyw closed this as completed May 15, 2019
@dolyw dolyw reopened this May 17, 2019
@dolyw dolyw closed this as completed Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants