Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to register a client name with Google?

I have two applications which access my users' calendars via a service account. Until today everything was working fine and out of a sudden one of the app cannot get a grant token. I read that this may be due to the same service account being used simultaneously (which was the case for a year but never mind) so I decided to

  • create a second service account
  • and authorize it to access the calendars

I created the service account in the Google Developers Console -> API Manager -> Credentials.

The console now looks like this:

enter image description here

Service account client 1 is the original service account which was working for both apps and now works for one of them only. The ga... account is the newly created one.

In order to get the ClientID I went (on the same page) to "Manage service accounts" and I get this:

enter image description here

The newly created account does not offer the possibility to check its ClientID. Why?

The ClientID is also available in the JSON file downloaded upon creation. I extracted it from there and tried to authorize the access in my GApps Security console:

enter image description here

As you can see it was refused.

What part did I miss when creating this second account?

like image 888
WoJ Avatar asked Jan 01 '16 21:01

WoJ


People also ask

How do I get a client ID for Google Drive?

Step 1: Please sign in with your Google Cloud console. Step 2: Click Select a Project dropdown and Create a New project. Step 4: Click on the Credentials menu on the left sidebar, & then click on + Create Credentials as shown below the image. Choose the OAuth Client ID option.

What is a client ID?

A Client ID is an identifier associated with an application that assists with client / server OAuth 2.0 authentication for ArcGIS client APIs . Developers create a client ID by defining an application on their developer dashboard.

How do I register an Origin project client ID on Google?

Please go to https://console.developers.google.com/apis/credentials, click on the 'edit' button of your Client ID, and add your site to the origin whitelist.


1 Answers

Found it:

enter image description here

and after checking the checkbox below both accounts look the same, the ClientID is available and it can be authorized in the GApps console.

enter image description here

like image 105
WoJ Avatar answered Sep 18 '22 09:09

WoJ