This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hi
Would it be possible to make available a general purpose Google Authenticate tool that allows service-to-service authenticate, the output of which (access token) could then be used for REST calls to Google APIs?
This is currently only available for BigQuery but we also need to access Drive, Google Storage, and other services via a service account. There are other Alteryx tools out there that can be used to access via a named account (using a client_secret & refresh token) but none that I have seen (except the BigQuery Input tool) that allow you to use a JSON private key file to authenticate.
I assume this is easy to achieve as this is already a component of the BigQuery input tool anyway
Cheers
Effectively it would just need to generate a JSON web token (JWT) according to these docs:
https://cloud.google.com/iot/docs/how-tos/credentials/jwts#iot-core-jwt-python
I built one for Google Analytics which can be easily tweaked to accommodate BigQuery:
http://insightsthroughdata.com/connect-to-google-analytics-4-ga4-and-extract-with-alteryx/
Skip to the 'Authentication using a Service Account' part...
@fpinchon Have you used the above GCP service account method for Google Drive Input/Output too by chance?
I haven't tried, but used to method successfully on GA4 and G Sheet...
Worth a try...