错误:invalid_client-即使取消删除了API项目,OAuth客户端也被删除了 [英] Error:invalid_client - The OAuth client was deleted even after having undeleted the API project

查看:59
本文介绍了错误:invalid_client-即使取消删除了API项目,OAuth客户端也被删除了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在我的Google API项目中遇到问题.这个项目昨天被删除了(我不知道是谁做的...),所以我试图取消删除它.在此之后,我仍然收到相同的错误消息:

I am currently facing an issue with my Google API project. This project was deleted yesterday (I don't know who did it...) so I tried to undelete it. After this I still get the same error message:

Error: invalid_client
The OAuth client was deleted.

Request detail
cookie_policy_enforce=false
scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email https://www.google.com/m8/feeds/ https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/tasks
response_type=code
access_type=offline
redirect_uri=https://domain.com/googleConnect
client_id=projectID.apps.googleusercontent.com

我该怎么做才能完全恢复该API项目并解决此问题? 感谢您的帮助!

What can I do to completely revive this API project and fix this issue? Thanks for your help!

推荐答案

控制台上,您的OAuth客户端看起来像被删除.

您需要还原(如果可能)或重新创建它.

You need to restore (if possible) or re-create it.

信息中心->启用API并获取诸如密钥之类的凭据->凭据->新凭据-> OAuth客户端ID

Dashboard -> Enable APIs and get credentials like keys -> Credentials -> New Credentials -> OAuth Client ID

将新的客户端ID和反向客户端ID添加到GoogleService-Info.plist

Add the new client id and Reversed Client id to GoogleService-Info.plist

最后将com.googleusercontent.apps.YourClientId添加到URLSchemes

Finally add com.googleusercontent.apps.YourClientId to URLSchemes

这篇关于错误:invalid_client-即使取消删除了API项目,OAuth客户端也被删除了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆