Postman Oauth 2 回调 url - Chrome 应用程序

Rya*_*ler 7 google-chrome oauth-2.0 postman

我正在使用 Postman 的 Chrome 应用程序,并使用 OAUTH2 设置我的访问令牌。当我填写表格时,我使用以下内容:

授权网址:https://[MY_API_URL]/api/authorize

访问令牌 URL:https://[MY_API_URL]/api/request/token

客户 ID:xxxxxxxxxxx

客户秘密:xxxxxxxxx

范围:空白

授权类型:授权码

我的外部服务器中的回调网址设置为“ https://www.getpostman.com/oauth2/callback

当我单击请求令牌时,我将进入正确的身份验证页面。当我提交凭据时,会打开一个新的 Chrome 选项卡,其中包含一个空白页面,网址为https://app.getpostman.com/oauth2/callback?code=xxxxxxxxxx

我希望这应该重定向到应用程序,以便它可以执行访问令牌请求。来自访问令牌 url,但什么也没有发生。这不是正确的回调 uri 吗?

Mig*_*g82 8

这是一个老问题,自那以后情况发生了变化。

Google 已弃用Chrome Apps,因此 Postman 也必须弃用其旧的 Chrome App 客户端,因此旧的重定向 URL ( https://www.postman.com/oauth2/callback) 不再有效。

据此在 Postman 的最新版本中,新的重定向 URL 为https://oauth.pstmn.io/v1/callback


Eng*_*san 2

我也面临同样的问题。只需更改Grant Type: Authorization CodeGrant Type: Client Credentials. 这对我有用。