知识卡片
网关授权器可注入受限凭证
授权器先验证并提取租户上下文,再根据策略取得临时受限凭证,传给函数初始化资源客户端。它减少业务函数重复解析权限的工作,也可集中缓存;必须防止客户端伪造注入字段,并让缓存范围与租户和授权语境一致。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Serverless SaaS: Architecture Patterns and Strategies · 查看原书依据
The credentials returned by this process are then injected into the header of the request being sent into the microservice. The service will still have some responsibility for applying these credentials. For this example, the credentials would be used when initializing the database (DynamoDB) client and applied to each request that attempts to access the data in the Order table.
参考来源
- 位置:《Building Multi-Tenant SaaS Architectures》第11章《Serverless SaaS: Architecture Patterns and Strategies》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Multi-Tenant SaaS Architectures/_epub-src/OEBPS/ch11.html)
- 结论依据:原文具体说明授权器先验证并提取租户上下文,再根据策略取得临时受限凭证,传给函数初始化资源客户端;本卡据此归纳机制及适用边界。
- 原始内容:The credentials returned by this process are then injected into the header of the request being sent into the microservice. The service will still have some responsibility for applying these credentials. For this example, the credentials would be used when initializing the database (DynamoDB) client and applied to each request that attempts to access the data in the Order table.