Site-kit-wp: Oauth is generating API key instead of Client Credentials

Created on 19 Sep 2019  路  28Comments  路  Source: google/site-kit-wp

Hi,
When trying to connect Site Kit to WP, On step 1 for creating new client ID, I follow the link and when I arrive at the page, I click Generate OAuth Credentials. Instead of giving me Client Credentials, It gives me an API Key. The Plug in is not wanting an API Key.

Capture

Support

Most helpful comment

And do you know the client-ID and client_secret ?

Let me know if it works or not.

All 28 comments

I have the same problem help me

Same here.

same here

Same here

@zaadams @enricoy @Sanjoy123456 @fether-dev @vamshi428 We are looking into this at the moment, please bear with us while we investigate.

I'm having this issue as well. Thanks for looking into it @jamesozzie. Let us know what you find out.

@zaadams @enricoy @Sanjoy123456 @fether-dev @vamshi428 We are looking into this at the moment, please bear with us while we investigate.

I'm facing the same issue....

@jamesozzie, We got the same issue as well. Thanks for working on this. I'm looking forward to working with Site Kit for the first time.

same here

i am also having this issue

also get the same issue, i get only API key not the OAuth Client ID Conf

I hope this gets fixed soon.

Is there a way to manually create the client config? I already have a Google Cloud Project created, can I insert my apps credentials into a code snippet template? Maybe this could be a temporary work-around?

Yup same issue here..

yes the same problem even I try to get Client Credentials from API console but it didn't work

@jamesozzie Any fixes yet?

You can manually set it up by entering details in given code

{ "web": { "client_id": "Client ID Goes Here", "project_id": "Project ID Goes Here", "auth_url": "https://accounts.google.com/o/auth2/auth", "token_url": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_secret": "Client Secret Goes Here", "redirect_uris": [ "https://yourdomain.com?oauth2callback=1" ] } }

You can manually set it up by entering details in given code

{ "web": { "client_id": "Client ID Goes Here", "project_id": "Project ID Goes Here", "auth_url": "https://accounts.google.com/o/auth2/auth", "token_url": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_secret": "Client Secret Goes Here", "redirect_uris": [ "https://yourdomain.com?oauth2callback=1" ] } }

Example is given below

{ "web": { "client_id": "1031765-a0i7j5327d40fvcmmkaug2s81eb.apps.googleusercontent.com", "project_id": "news-angels-156987741", "auth_url": "https://accounts.google.com/o/auth2/auth", "token_url": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_secret": "EHeTYxchhvuufvTlYq", "redirect_uris": [ "https://newsangels.com?oauth2callback=1" ] } }

And do you know the client-ID and client_secret ?

Here some Images to get Project ID, Client Secret and Client ID etc

Screenshot 1
Screenshot 2
Screenshot 3
Screenshot 4
Screenshot 5
Screenshot 6
Screenshot 7
Screenshot 8
Screenshot 9

And do you know the client-ID and client_secret ?

Screenshot 5

And do you know the client-ID and client_secret ?

Let me know if it works or not.

@usmanswift , Thank you so much!! lifesaver. It worked for me. And it is also good to know how to do this manually as well. Thanks again bro!

@usmanswift , Thank you so much!! lifesaver. It worked for me. And it is also good to know how to do this manually as well. Thanks again bro!

I'm glad, I was helpful.

@usmanswift Thanks a lot! I Was struggling for sure.

I found this which might help, Once you correctly enter your callback details you can download the JSON config here.
image

@usmanswift Thanks a lot! I Was struggling for sure.

I found this which might help, One you correctly enter your callback details you can download the JSON config here.
image

Good Idea, thanks for sharing

@usmanswift , Thank you so much!! lifesaver. It worked for me. And it is also good to know how to do this manually as well. Thanks again bro!

I'm glad, I was helpful.

Thank you very much, that made the trick!

Good news everyone!

The issue with the client credentials generation has been resolved and you should all be able to set up Site Kit as expected.

If you still experience issues, please let us know.

Was this page helpful?
0 / 5 - 0 ratings