知识卡片

普通读书笔记卡 · 2931.e.3.a.6.a

多租户账号需显式语境

理解等级:中级

同一邮箱若属于多个租户,登录流程必须明确目标租户。通过租户子域可在认证前提供语境;在认证前列出邮箱所属租户可能泄露成员关系。还须检查身份提供商的唯一性范围,不能假定共享用户目录支持同名账号绑定多个租户。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Onboarding and Identity · 查看原书依据

      prompt the user to select a target tenant. This is anything but elegant and it does create an information leak in that anyone can use an email address to see which tenants you belong to (if and only if you belong to more than one). In the model, you’d have a mapping table that connected users to tenants and you

    参考来源

    - 位置:《Building Multi-Tenant SaaS Architectures》第04章《Onboarding and Identity》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch04.html) - 结论依据:原文具体说明同一邮箱若属于多个租户,登录流程必须明确目标租户;本卡据此归纳机制及适用边界。 - 原始内容:prompt the user to select a target tenant. This is anything but elegant and it does create an information leak in that anyone can use an email address to see which tenants you belong to (if and only if you belong to more than one). In the model, you’d have a mapping table that connected users to tenants and you