← 返回刚才阅读的位置

知识卡片

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

授权范围与身份层

理解等级:中级

OAuth 2.0 的 scope 描述委托授权范围,访问令牌代表授予的访问能力。需要标准身份信息时再看 OpenID Connect 的身份层。写契约时应区分登录确认、访问令牌传递和对资源的授权校验。

这张卡片看不懂?

已有反馈 · 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,阅读块 186) - 结论依据:原文把 scopes 联系到可访问能力,并介绍建立在 OAuth 2.0 之上的 OpenID Connect。 - 原始内容:oauth2—The oauth2 type is for the OAuth 2.0 protocol, which describes a process for delegated authentication. If you’ve ever been to a website and they asked you to log in with a third-party account (like Google or Facebook), you’ve experienced what’s often