Invalid_client on google oauth2

I'm trying to create a webpage for uploading videos to YouTube, so I'm trying to get the client id from the google api console, and in the api console something like this:

Client ID: 533832195920.apps.googleusercontent.com Redirect URIs: http://bobyouku.ap01.aws.af.cm/testyoutube.php https://developers.google.com/oauthplayground 

However, when I try to verify my account using the following URL:

https://accounts.google.com/o/oauth2/auth?client_id=533832195920.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Fbobyouku.ap01.aws.af.cm%2Ftestyoutube.php&scope=https%3A% 2F% 2Fwww.googleapis.com% 2Fauth% 2Fyoutube & response_type = code & access_type = offline

It returns the result of invalid_client. Even when I try it on the oauth2 playground, the same crash happens.

So does anyone know what will happen?

+61
google-oauth google-data-api oauth2-playground
Jun 18 '13 at 10:41
source share
16 answers

Set / change the name of your product, I had this problem until I created the product name in the same way as the project name.

The product name can be set in the "Consent" section of the Google Developers console for your project. Look under the API and log in in the left navigation bar and select the consent screen. You also need to set your email address in the box above the product name.

+96
Oct 23 '13 at 8:03
source share

After copying the values โ€‹โ€‹from the Google web interface, I had an empty space for:

  • client_id
  • secret

And at the BEGINNING and END for both.

+43
Jan 19 '16 at 21:39
source share

Trim the start and end white space with both client_id and client_secret . The Google copy button does not do this for you.

Client ID and Client Secret

Set the email address and product name fields for the OAuth consent screen.

OAuth Negotiation Screen Configuration

+23
Jul 12 '16 at 1:02
source share

Setting EMAIL ADDRESS and PRODUCT NAME on the Google Developer Console consent screen resolves the error "Error: invalid_client. OAuth client not found." for me.

+16
Sep 10 '14 at 9:57
source share

In this thread I found my answer.

  • I went to the google console,
  • create a new project, update it, because in my case the pages did not reload after creating
  • select a new project
  • create customer id
  • use it for what you need

Thanks guys: D

+7
May 27 '14 at 18:33
source share

In my case, this turned out to be something else, namely, my code used an environment variable that was not set properly (and was stupidly not verified by my code). Setting up, recompiling assets, and restarting the application did the trick.

+4
09 Oct '14 at 19:31
source share

I have had .apps.googleusercontent.com twice.

It was a copy and paste of "Your ID HERE .apps.googleusercontent.com

+3
Aug 28 '15 at 12:00
source share

Has there been an error in the message that the application name is missing? I had this problem until I created a project name (for example, "Project X") in the project settings dialog box.

+2
Jul 16 '13 at 23:02
source share

probably old credentials are invalid

see answer below

stack overflow

or short names may work

see the answer below https://stackoverflow.com/a/3186263

or product name, similar to the project name, as already mentioned

from time to time additional space may be added to

double check this line so that you are redirected to the correct URL

+1
Apr 29 '17 at 6:01
source share

invalid_client can also simply mean that your client id and client secret are incorrect when creating the Oauth2 object.

+1
Jun 06 '17 at 21:37
source share

Check the project name in the Google API console. You choose another project that you created. I was the same mistake. my mistake was to choose a complex project.

0
Jun 19 '13 at 3:33
source share

In Credentials Accept requests from these HTTP referrers (websites) (optional) Use asterisks for wildcards. If you leave this gap, requests will be accepted from any referrer. Be sure to add sources before using this key in production. Add. (star star star). This works great for me.

0
Dec 22 '15 at 5:48
source share

I accidentally got a value in terms of client privacy, but Google Credential doesn't need Client Secret for OAuth 2 client IDs for Android. Just leaving the value blank in the url helped.

0
Mar 05 '16 at 13:02
source share

The steps that worked for me:

  • Delete credentials that don't work for you
  • Create new credentials using some NAME
  • Fill in the same name on the OAuth confirmation screen.
  • Enter your email address on the OAuth consent screen.

The name should be exactly the same.

0
May 12 '17 at 8:41 a.m.
source share

I solved this by removing unnecessary quotes from my clientID and clientSecret ids.

0
Dec 01 '17 at 10:01
source share

One more thing to check:

When you install GoogleAPI in. Net application with NuGet, it will introduce a new set of dummy values โ€‹โ€‹into your * .config file.

Make sure that all the original values โ€‹โ€‹are still in place, and delete the dummy entries.

0
Dec 20 '17 at 11:42 on
source share



All Articles