编辑 | blame | 历史 | 原始文档

配置客户端

  • 打开接口文档系统http://localhost/doc.html,设置客户端认证的请求头。("c3dvcmQ6c3dvcmRfc2VjcmV0"为clientId:clientSecret串转换为的base64编码
    ![](../../images/screenshot_1559032174304.png)

  • 点击左上角的Authorize,配置Authorization请求头
    ![](../../images/screenshot_1579325541768.png)

配置token

  • 获取上一章节中调用/oauth/token接口返回的参数 token_typeaccess_token,将他们拼接起来并以逗号隔开
  • 点击左上角的Authorize,配置Blade-Auth请求头
  • 请求头对应的值为 tokenType + ' ' + accessToken
    ![](../../images/screenshot_1579325555998.png)
  • 配置租户编号,这里我们设置为000000
    ![](../../images/screenshot_1579325593100.png)

配置生效

  • 保存完毕后浏览器刷新,再打开对应的接口,这时候会发现接口直接调用成功
    ![](../../images/screenshot_1578834267718.png)
    ![](../../images/screenshot_1578834282529.png)