代码之家  ›  专栏  ›  技术社区  ›  user3940641

Swagger支持哪些OAuth 2.0流?

  •  2
  • user3940641  · 技术社区  · 7 年前

    • authorization_code
    • implicit
    • password
    • client_credentials
    • refresh_token

    那么,Swagger支持哪种流?

    1 回复  |  直到 6 年前
        1
  •  3
  •   Community CDub    3 年前

    OpenAPI/Swagger支持由定义的四个OAuth流 RFC 6749

    • accessCode (OpenAPI 2.0)或 authorizationCode (OpenAPI 3.0)-授权代码流。

    • implicit

    • password -资源所有者密码凭据流。

    • application (OpenAPI 2.0)或 clientCredentials (OpenAPI 3.0)-客户端凭据流。