知识卡片
认证与授权回答不同问题
认证核实请求者是谁;授权判断这个身份能否访问特定资源或执行操作。API 不能因为用户已登录就默认允许读取任意对象,资源级权限还需独立检查。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》第 11 章《API authorization and authentication》(源文件:_epub-src/OEBPS/Text/11.htm)
- 结论依据:原文直接区分身份验证和资源/操作访问判定。
- 原始内容:Authentication is the process of verifying the identity of a user, while authorization is the process of determining whether a user has access to certain resources or operations.