【发布时间】:2017-04-15 02:40:42
【问题描述】:
我正在尝试为 Postman 构建 POC,从 Powershell 转换一些 API 测试。
这是一个这样的调用:
Invoke-RestMethod -Method Post -Uri $getSiteListUri -Headers $headers
Headers 由 uuid 和 Authorization (JWT) 组成。
将其放入没有身份验证的 Postman 中,并且相同的标头会生成 Success: False 响应。
我尝试过的事情:
-Adding "Bearer " to Authorization
-Removing no-cache and Postman-Token from the header in settings.
为此我还需要哪些其他步骤?
【问题讨论】:
标签: rest powershell authentication jwt postman