2

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.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
user3655256
  • 31
  • 1
  • 1
  • 3

6 Answers6

7

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.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
  • 2
    Doesn't work for me. Product name & Email are both set (email was selected from dropdown). Saved & revisited "Consent screen" to confirm; all there. Followed http://updraftplus.com/support/configuring-google-drive-api-access-in-updraftplus/ – Marcos Nov 02 '14 at 23:03
  • I suggest you contact updraftplus support for help, since its not your application posting the code you are having a problem with isn't going to help. – Linda Lawton - DaImTo Nov 03 '14 at 10:43
  • Make sure you created Client ID for web application and that it points to the files on your site. I have tested and it does work. – Linda Lawton - DaImTo Nov 03 '14 at 15:16
  • @DalmTo Where is consent screen please ? – tamtoum1987 Apr 13 '15 at 09:19
  • https://console.developers.google.com (your project) left hand side under Apps & auths -> consent screen – Linda Lawton - DaImTo Apr 13 '15 at 09:30
7

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.

ajmccall
  • 2,024
  • 23
  • 42
6

In Google Developer Console turn Gmail API on.

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

enter image description here

Ivan Shevtsiv
  • 311
  • 2
  • 10
  • 13
0

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.

ro0xandr
  • 105
  • 7
0

Had the same problem and the solution was:

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

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!

Parthasarathy S
  • 197
  • 1
  • 6