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

问个偏业务点的问题,关于鉴权 #10

Closed
bigbigbo opened this issue Jun 20, 2019 · 4 comments
Closed

问个偏业务点的问题,关于鉴权 #10

bigbigbo opened this issue Jun 20, 2019 · 4 comments

Comments

@bigbigbo
Copy link

假设我已经拆解成多个子应用并且能实现独立部署独立运行,也可以将这些子应用聚合在一起作为一个聚合应用发布。
在这样的场景下,如果各个子应用都需要登录权限,该如何去设计能实现子应用和聚合应用使之运行良好呢?

@phodal
Copy link
Owner

phodal commented Jun 21, 2019

鉴权要么是用 token 要么是用 cookie,聚合发布的时候,他们都是同域,不存在这样的问题。只需要在基座应用里,实现登录功能即可。

@bigbigbo
Copy link
Author

那如果我子应用独立部署,也想能登陆怎么处理比较好(如果跳转到聚合应用里登陆并且部署在不同域的情况下会有问题)?是把登陆这块也拎出来作为一个子应用而不是基座应用里实现,然后想要独立部署子应用,那就连带着把登陆也部署了,就是至少部署1个子应用和1个登陆应用。

@phodal
Copy link
Owner

phodal commented Jun 21, 2019

可以,哈哈

@bigbigbo
Copy link
Author

谢谢回答。今天你的书就要到手了,到时在拜读下:smiley:

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