cloud storage authentication for non google users

40 views
Skip to first unread message

Filip Delperdange

unread,
Dec 14, 2021, 10:55:11 AM12/14/21
to google-cloud-storage-discuss
Hello,

We are building an application through which users will be able to access protected resources.  (images, documents ...). These images and documents will be loaded by the web browser
We manage user authentication in the application.

We would like to store these resources on google cloud storage and load them directly from google cloud storage into the web browser
But how can we authorize the access to this resources on google cloud storage so that only our users browser can upload these resources?

Thx,
Filip.

user

unread,
Dec 14, 2021, 4:36:31 PM12/14/21
to google-cloud-storage-discuss

Hello,


I understand that you would like to authorize web pages to upload images (objects) to Cloud Storage. I was able to find a document here, indicating that the best way to do this is using signed policy documents[1][2]. You may see an example here[3]. A policy document would allow an HTML form to upload files into the target bucket. 

Google Groups is meant for general discussions about Google products. If you would like coding examples and questions, I highly encourage you to reach out to our programming community on Stackoverflow.


[1] https://cloud.google.com/storage/docs/access-control#signed_policy_documents

[2] https://cloud.google.com/storage/docs/authentication/signatures#policy-document

[3] https://cloud.google.com/storage/docs/authentication/signatures#policy-document-example

Filip Delperdange

unread,
Dec 15, 2021, 1:26:02 PM12/15/21
to google-cloud-storage-discuss
Hello,

Thx for the feedback!
It is not only uploading, but also retrieving and showing in the browser.
Only authenticated users should be able to retrieve images and documents from the the bucket.
They are authenticated by another application (so not google users).  So somehow I would like generate a token that would allow the user to retrieve data from a specific bucket.

kr,
Filip.

Op dinsdag 14 december 2021 om 22:36:31 UTC+1 schreef user:

user

unread,
Dec 15, 2021, 2:11:20 PM12/15/21
to google-cloud-storage-discuss

Hello,

Thank you for the clarification. It appears that you would like advice on the implementation of an idea you have. As Google Groups is meant for general discussions and opinions, I may kindly refer you to our programming community on Stackoverflow, where you may benefit from their advice.

Reply all
Reply to author
Forward
0 new messages