Error:invalid_client - The OAuth client was deleted even after having undeleted the API project

本小妞迷上赌 提交于 2019-12-31 03:21:13

问题


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

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


回答1:


It looks like your OAuth client on the console got deleted.

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

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

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

Finally add com.googleusercontent.apps.YourClientId to URLSchemes



来源:https://stackoverflow.com/questions/20253508/errorinvalid-client-the-oauth-client-was-deleted-even-after-having-undeleted

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!