Speaking of which, when might we promote the jclouds-labs-google/oauth project 
to the main jclouds repo?  Is there anything that is preventing us from doing 
so?

This code could be used by other APIs going forward and any insight is 
appreciated!

/jd

From: Tobias Knaup <t...@knaup.me<mailto:t...@knaup.me>>
Reply-To: "u...@jclouds.apache.org<mailto:u...@jclouds.apache.org>" 
<u...@jclouds.apache.org<mailto:u...@jclouds.apache.org>>
Date: Thursday, July 17, 2014 at 4:00 PM
To: "u...@jclouds.apache.org<mailto:u...@jclouds.apache.org>" 
<u...@jclouds.apache.org<mailto:u...@jclouds.apache.org>>
Subject: Google compute engine OAuth

Hi,

I'm trying to use jclouds-labs-google to start machines on GCE. Everything 
works fine if I use email + key as credentials, but I need to use OAuth. 
Digging through the code it seems like there is support for that, but only if 
jclouds gets the OAuth token itself. I already have the user's token so I want 
to just use that.

I tried a few things that didn't work:
- add a Supplier<OAuthCredentials> with the oauth token, it complains about the 
key not being in PEM format. I don't have the user's private key.
- subclass OAuthAuthenticator so it just uses the token I'm passing in. I 
omitted setting .credentials() on ContextBuilder which errors

Can someone give me pointers?

Thanks!

Tobi

Reply via email to