Skip to content

voscausa/appengine-gcs-acl-insert-delete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Insert or delete a READER acl-entry for an e-mail address using the Cloudstorage json API.

Examples in acl.py and api-test.py. api-test.py uses the Pyhon API client for appengine

The appengine Google Cloud Storage Client Library does not support setting or deleting ACL entries.

The App Engine SDK supports the Cloud Storage Client. It doesn't support the json REST API.
But the SDK can use the REST API and a service account to access the hosted Cloud storage.
An appengine service accounts makes it very easy to use OAuth2 and Python APIs.
To make this work in the SDK, you have to use two options in development server:

--appidentity_email_address=<developer service account e-mail address>
--appidentity_private_key_path=<d:/.../gcs-blobstore.pem key>

The service account e-mail and a p12 key can be found in the Google Developers Console of your Cloud project:

Google Developers Console -> API & Auth -> Create a new client ID for a service account and generate p12 key

Use openssl to convert the p12 in a RSA pem key. For windows use:

openssl pkcs12 -in gcs-blobstore.p12  -nocerts -nodes -passin pass:notasecret | openssl rsa -out gcs-blobstore.pem

More docs about the service account SDK options

About

Insert and delete a user cloudstorage READER acl foor google appengine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages