知识卡片
声明避免承载易变权限
自定义声明适合稳定的租户属性和全局访问语境。随应用功能频繁变化的细粒度权限更适合由应用访问控制模型管理,否则令牌结构会与功能迭代紧耦合。判断属性归属可看其生命周期与职责,而非看到可扩展字段就全部塞进令牌。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Onboarding and Identity · 查看原书依据
on the lifecycle and role of the attribute. If the attribute tends to be evolving with the introduction of application features, functions, and capabilities, then it should be managed more through application access controls. Generally, attributes that land in your custom claims are unlikely to be changing as your application changes. The content of your tokens, for example, should not
参考来源
- 位置:《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)
- 结论依据:原文具体说明自定义声明适合稳定的租户属性和全局访问语境;本卡据此归纳机制及适用边界。
- 原始内容:on the lifecycle and role of the attribute. If the attribute tends to be evolving with the introduction of application features, functions, and capabilities, then it should be managed more through application access controls. Generally, attributes that land in your custom claims are unlikely to be changing as your application changes. The content of your tokens, for example, should not