The Google drive camel component uses OAuth 2.0 for validating API
calls. You need a OAuth token. The IAM service account key is
something different.
You can create OAuth client credentials here:
https://console.developers.google.com/apis/credentials
On Fri, Mar 2, 2018 at 1:15 PM, Shultz, Dmitry
wrote:
> Hi All,
>
> There is a backend service riding Camel that supposed to upload files to the
> Google Drive. All data is generated by the service itself, so I want to use
> the Google Service Account for the Google authentication/authorization.
>
> I created the service account, generated json key (as described here
> https://cloud.google.com/iam/docs/creating-managing-service-account-keys) and
> have no clue how to feed it to the GoogleDriveConfiguration object:
>
> https://github.com/apache/camel/blob/master/components/camel-google-drive/src/main/java/org/apache/camel/component/google/drive/GoogleDriveConfiguration.java
>
> because it doesn't' seem to me it can accept the JSON key. I will appreciate
> if someone can point me to the right direction.
>
>
> Cheers,
> Dmitry
--
Guillermo Castro
webmas...@javageek.org http://javageek.org/