Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.06 KB

swagger-auth.md

File metadata and controls

23 lines (16 loc) · 1.06 KB

Swagger用户认证

Swagger用户认证,是指在Swagger文档中定义用户认证方式,并实现相应的认证逻辑。

准备工作

把${ofbiz_home}/plugins/sand-openapi/docs/yaml复制到${ofbiz_home}/runtime/openapi/下,启动ofbiz,访问https://localhost:8443/openapi/,点击File菜单,可以看到yaml目录。


支持三种认证模式

OpenAPI支持五种认证模式,Sand-Openapi模块实现了其中的三种,具体如下:

  1. Http基本认证
  2. Http Bearer认证
  3. OAuth 2.0认证

参考文档

  1. OpenAPI支持五种认证模式
  2. Http基本认证(Basic Authentication)
  3. Http Bearer认证
  4. OAuth 2.0