[GoogleAPIToken] how to use

Forge Component
Published on 2016-06-22 by Miguel João
3 votes
Published on 2016-06-22 by Miguel João


1. I'm using server to server delegation of authority using service account in my project. I'm not sure if this component would help me. There is this client email. Should I use the service account email or the admin email for my gsuite here.

2. Also the private key field, should I use the private key as it is like including BEGIN PRIVATE KEY or shoud it be removed


Samuel Stephen 

Hello Samuel,

This component is for authenticating into Google Cloud services using a service account, not the user's emails. So if you have a service account created for a Google Cloud service, you can use the service account email generated for the service account, and the correspondent private key, including the BEGIN PRIVATE KEY and END PRIVATE KEY separators.

For example, a service account email might look like "myproject-id@appspot.gserviceaccount.com" or "myproject-id@project-id-iam.gserviceaccount.com".

You can manage your Google Cloud Service accounts using the Google Cloud Console, under IAM & Admin -> Service Accounts section.

Hope this information is helpful.