知识卡片
认证授权角色应分开
身份提供者IDP管理身份与认证;策略执行点PEP拦截请求并执行决定;策略决策点PDP计算是否允许;信息点PIP为决策补充属性。令牌已含所需信息时可不额外查PIP。把拦截与决策分开能复用专门授权逻辑,身份认证成功不代表拥有任意资源权限。
结构图:
flowchart LR
U[用户] --> I[身份提供者]
I -->|身份令牌| U
U --> E[策略执行点]
E --> D[策略决策点]
D --> P[策略信息点]
D -->|允许或拒绝| E
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 宏观架构中的安全 · 查看原书依据
The identity provider (IDP) offers user management and authentication. When users call the application, the policy enforcement point (PEP) intercepts the call and invokes the policy decision point (PDP) to make an authorization decision. The separation of PEP and PDP allows for a specialized authorization logic evaluation. PDP often needs more information, which it might get by calling the policy information point (PIP). Sometimes, the IDP plays the role of PIP. Other times, authenticated tokens issued by the IDP include all required information, and PIP is not required.
参考来源
- 位置:《Software Architecture and Decision-Making》第08章《宏观架构中的安全》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch08.xhtml)
- 结论依据:所引连续原文给出本卡机制或取舍;条件与示例结合本节已读上下文解释。
- 原始内容:The identity provider (IDP) offers user management and authentication. When users call the application, the policy enforcement point (PEP) intercepts the call and invokes the policy decision point (PDP) to make an authorization decision. The separation of PEP and PDP allows for a specialized authorization logic evaluation. PDP often needs more information, which it might get by calling the policy information point (PIP). Sometimes, the IDP plays the role of PIP. Other times, authenticated tokens issued by the IDP include all required information, and PIP is not required.