Error: invalid_client with Google Apps API OAuth2

2020-02-06 04:23发布

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.

6条回答
放我归山
2楼-- · 2020-02-06 04:47

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!

查看更多
太酷不给撩
3楼-- · 2020-02-06 04:52

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.

查看更多
Root(大扎)
4楼-- · 2020-02-06 04:54

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.

查看更多
欢心
5楼-- · 2020-02-06 05:03

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

enter image description here

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.

查看更多
男人必须洒脱
6楼-- · 2020-02-06 05:06

Had the same problem and the solution was:

  • Set my email
  • Recreate the keys
  • Activate Google API+ from API Library
查看更多
淡お忘
7楼-- · 2020-02-06 05:12

In Google Developer Console turn Gmail API on.

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

enter image description here

查看更多
登录 后发表回答