Hey Jason,

You can use gcloud auth activate-service-account --key-file KEY_FILE on 
systems outside Compute Engine (GCE), and the usual gcloud source repos branch 
of the command for GCE machines, as described in this Stack Overflow answer 
<http://stackoverflow.com/a/36339396/4270992>. This is the recommended way, 
although if you wanted to inspect your local system to find the token after 
gcloud auth and attempt to formulate raw HTTP requests, you could, just be 
aware that oauth2 bearer tokens are secrets and should be secured well in 
transit.

Sincerely,

Nick
Cloud Platform Community Support

On Friday, June 17, 2016 at 1:01:28 PM UTC-4, Jason Haury wrote:
>
> I'm using the Development Repository within Google Cloud Platform.  In 
> many ways, it acts like a normal git repository, but I can't figure out how 
> to get an OAuth token to allow another app to use the repository.  The 
> other app needs an OAuth token just like how github provides.  
>
> From what I can see, all OAuth token available by Google are for specific 
> APIs shown in the cloud console API Manager, and none of those APIs are for 
> Development Repository (perhaps the Cloud Storage API is a hook in?).   
>
> How can I get an OAuth token to allow github.com-like access to my Google 
> Development Repo?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ba65322c-efed-43b6-8510-cca3490f8052%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to