添加邮递员重定向 URI 后,Google api 凭据屏幕卡住旋转

编程入门 行业动态 更新时间:2024-10-25 08:25:50
本文介绍了添加邮递员重定向 URI 后,Google api 凭据屏幕卡住旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在 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 (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 (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.

推荐答案

documenter.getpostman/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 凭据屏幕卡住旋转

本文发布于:2023-10-29 09:46:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1539373.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:凭据   邮递员   重定向   屏幕   Google

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!