I have been attempting to upload images into buckets on Google Cloud Storage using the JSON API and the Javascript sample provided in the documentation.
Although I am able to successfully upload pictures, I am encountering an issue where it prompts me to log in to my Google account.
The Javascript sample includes an Authorization button that handles OAuth credentials, but I want to authenticate without having to manually log in. My client does not have access to the necessary email or password, so I need it to be automatic.
Is there a way for me to achieve this?
Thank you!
-----------------------------UPDATE--------------------
In response to Brandon's suggestion, I have implemented the following:
I have created and signed my policy document as shown below:
[Code snippet demonstrating policy creation and signing]
And here is my post form:
[Code snippet detailing the form submission]
Despite various attempts with different combinations in the Javascript code, I am struggling to determine what should be placed in the `policy` and `signature` fields. The API documentation is unclear on this matter.
Whenever I try different values in these fields, such as PolicyJson64 or sig, I encounter the following error:
[Error message indicating SignatureDoesNotMatch]
Can anyone provide guidance on what should be entered in these fields?
------UPDATE------
Please refrain from providing unhelpful copy-paste solutions from the documentation. A bounty has been added for assistance.