知识卡片

普通读书笔记卡 · 10388 · 生成模型:GPT-6

认证与授权职责

理解等级:初级

认证回答调用者是谁,授权回答该调用者能否操作这个资源。有效凭据可用于确认身份,服务仍需根据请求目标和身份判断权限。接口文档要能让调用者找到取凭据和使用凭据的方法。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Designing APIs with Swagger and OpenAPI》第07章《Adding authentication and authorization》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch07.htm,阅读块 7) - 结论依据:原文以用户名密码和资源权限说明职责。 - 原始内容:We’re going to look at authentication and authorization in this chapter (see figure 7.1), two close friends in APIs that are often a little misunderstood. Authentication is about proving you are who you say you are, which could be done with a