知识卡片

普通读书笔记卡 · 3271

认证身份与授权权限分开

理解等级:初级

认证回答调用者是谁,授权回答该身份可访问哪些资源和执行哪些操作。验证凭证只建立身份,不能自动授予访问用户资料或修改数据的权限。API 应把身份核验与每次资源操作的权限判断都纳入请求链路。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      In order to protect this information, the first step is to challenge and identify the caller of the API. Asserting this identity is called authentication. Once the caller is authenticated, the Attendee API establishes what the caller is allowed to access and retrieve: this type of entitlement checking is authorization.

    参考来源

    - 位置:《Mastering API Architecture》第7章《API Authentication and Authorization》之《Authentication》(源文件:_epub-src/OEBPS/ch07.xhtml) - 结论依据:原文以 Attendee API 说明先挑战并识别调用者,再判断其可访问和获取的内容,分别命名认证与授权。 - 原始内容:In order to protect this information, the first step is to challenge and identify the caller of the API. Asserting this identity is called authentication. Once the caller is authenticated, the Attendee API establishes what the caller is allowed to access and retrieve: this type of entitlement checking is authorization.