Noémien Kocher
Noémien Kocher

Reputation: 1354

Authenticated File with google cloud storage

Using the google cloud storage platform I didn't find anything speaking about adding permissions to files.

I would like to store files that are only available for my website users but not in public. Is there any way to achieve that? Google documentation is not so explicit...

Upvotes: 1

Views: 323

Answers (1)

Travis Hobrla
Travis Hobrla

Reputation: 5511

You have two options here:

  1. You can modify the access controls on your objects and associate your website users with a group, see: https://developers.google.com/storage/docs/accesscontrol#About-Access-Control-Lists
  2. You can create signed URLs for your users so that they don't need to have a Google account, see: https://developers.google.com/storage/docs/accesscontrol#Signed-URLs

Upvotes: 4

Related Questions