Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudConnect and GoogleBigQuery

I'm currently trying to do the OAuth process in GoodData's CloudConnect (also known as Clover ETL).

Does anyone have a guide or anything because the documentation is not clear on hot to set up OAuth 2.0 and i keep getting the error

bearer=Bearer realm="https://www.google.com/accounts/AuthSubRequest", error=invalid_token
like image 937
user2540238 Avatar asked Jan 30 '26 16:01

user2540238


1 Answers

Do you have valid token? In CloudConnect you have to use auth token that is only valid for limited amount of time. Then you need to make another request with your refresh token to received your new auth token. The workflow is:

  1. GET initial refresh and auth token and store them (done in first run only)

then for each BigQuery API request:

  1. GET new auth token by request that includes refresh token
  2. POST/GET with your refreshed token to the Google BigQuery API

Hope this helped! Feel free to download example here:

http://developer.gooddata.com/downloads/cloud-connect/examples/BigQuery.zip

like image 155
Jiri Tobolka Avatar answered Feb 02 '26 07:02

Jiri Tobolka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!