On Fri, Nov 22, 2013 at 8:57 PM,
<k...@form-runner.com> wrote:
I have a Google Cloud Console Account set up with billing enabled, have enabled the Google Cloud Storage API, and have created a bucket called my_bucket. But I'm not clear about how to provide my apps with authorization to access to my_bucket... I don't understand how to attach the ServerKey / APIKey to our library code to accomplish authorization.
You don't need to attach any keys to your code. App Engine and Cloud Storage handle authentication for you.
Log in to the cloud console, select the application you're using, then open up the Cloud Storage menu. Check the box next to the bucket you're using, then press the Bucket Permissions button. You'll see a screen similar to this:
http://imgur.com/gadnQEF . All you need to do is insert
(your application id) @ appspot . gserviceaccount . com (without spaces) as a privileged user on the bucket.
From here, your application will have access to the bucket. Just open a channel to the bucket using the GCS library, and GAE will handle authenticating to the bucket.