添加邮递员重定向 URI 后,Google api 凭据屏幕卡住旋转 [英] Google api credentials screen stuck spinning after adding a postman redirect URI
问题描述
我在 Google Cloud console 中创建了一个新项目来试验 Google OAuth 流程.因此,我使用
I have created a new project in Google cloud console to experiment with Google OAuth flows. I have therefore set up OAuth web app client credentials using
API 和服务 ->凭据 ->创建凭据 ->OAuth 客户端 ID ->网页应用
我希望能够尝试使用 postman 来请求授权码、访问/刷新令牌等.在创建 OAuth 客户端 ID 后,我将一个邮递员回调 URI (https://oauth.pstmn.io/v1/callback
) 添加到凭据的 授权重定向 URI 如此处所述.但是,当我单击创建 OAuth 客户端 ID 屏幕底部的 创建 时,屏幕不会更新,只会继续旋转.我已经等了 20 多分钟,但无济于事.这是一个回调 URI 验证问题,以至于 Google 不允许我将此重定向 URI 添加到凭据中吗?我尝试将域 oauth.pstmn.io
添加到项目设置中的授权域中,但无济于事.当我不包含重定向 URI 时,创建的凭据没有问题,然后我返回到主要的 APIs &服务 ->凭据
屏幕.
I want to be able to experiment with postman to request authorisation codes, access/refresh tokens etc. Once in the Create OAuth client ID I therefore add a postman callback URI (https://oauth.pstmn.io/v1/callback
) to the credentials' Authorised Redirect URIs as described here. However when I click CREATE at the bottom of the Create OAuth client ID screen, the screen does not update and just keeps spinning. I have waited for over 20 mins but to no avail. Is this a callback URI validation problem such that Google won't allow me to add this redirect URI to the credentials? I have tried to add the domain oauth.pstmn.io
to the authorised domains in the project settings but to no avail. When I don't include the redirect URI, the credentials are created with no problem and I am returned to the main APIs & Services -> Credentials
screen.
我用来进行这些更改的用户拥有该项目,因此我不怀疑这是 Google 用户权限问题.我还在OAuth 同意屏幕设置中添加了最少数量的字段(项目名称和支持电子邮件).我也试过在另一台机器上登录的整个过程.
The user that I am using to make these changes owns the project and therefore I do not suspect it is a Google user permissions issue. I have also added the minimum number of fields (project name and support email) to the OAuth consent screen settings. I have also tried this whole process logged in on a different machine.
推荐答案
https://documenter.getpostman.com/view/8296678/TzXtGzS2
您可以使用此公共集合来了解有关如何为 google API 设置身份验证令牌的更多信息
you can use this public collection to learn more about how to set up auth token for google APIs
这篇关于添加邮递员重定向 URI 后,Google api 凭据屏幕卡住旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!