Error: invalid_client with Google Apps API OAuth2

独自空忆成欢 提交于 2019-12-17 20:16:02

问题


I am using Google Apps API for my application with OAuth2. ,but I get an error.

Error: invalid_client

no support email

Request Details That’s all we know.


回答1:


If you create OAuth credentials BEFORE you set the support email address in the consent screen, then it appears that you will always get this error, even after setting the support email.

I resolved this by setting the support email, and then recreating all necessary OAuth ids in the credentials page.




回答2:


In the Google Developer console make sure that you have added a product name and an email address under. Apps & auths -> consent screen.

Update: This shouldn't be to much of a problem anymore. Google made a change in the console that wont let you save anything until you have updated these items.




回答3:


In Google Developer Console turn Gmail API on.

GDC > Dashboard > Use Google APIs > Google Apps APIs > Gmail API




回答4:


Be sure that you are set up the setDeveloperKey with your EMAIL ADDRESS offred in Google Console whe you create a Client ID for web application.




回答5:


Had the same problem and the solution was:

  • Set my email
  • Recreate the keys
  • Activate Google API+ from API Library



回答6:


1) Fill out the info email address and produce name as well as other details in the 'consent' screen on google's console when you generate the keys.

2) And make sure when you copy paste the ClientID and ClientSecret code from google to your workspace (IDE), there might be some unwanted spaces inbetween

Check with the google console and remove it.

Hope this helps,

--happy coding!



来源:https://stackoverflow.com/questions/23775972/error-invalid-client-with-google-apps-api-oauth2

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