I upload image in bucket of Google Cloud Storage via external API. I also assigned all access rights. I shared file download link with my friends which is similar to
https://storage.cloud.google.com/buketName/fileName.extension
But the problem is that sometimes it asks for Google authentication login and sometimes not.
Bucket files permission is given to all users, still sometimes it ask for login. Don't know why?
API authenticationIn the OAuth 2.0 Playground, click Cloud Storage API v1, and then select an access level for your application ( full_control , read_only , or read_write ). Click Authorize APIs. Sign in to your Google account when prompted. In the dialogue that appears, click Allow.
Sign in to your Google Admin console. Sign in using your administrator account (does not end in @gmail.com). Additional Google services. Click Google Public Data.
To reach public files without being logged in Google account you should use a link like this:
https://storage.googleapis.com/[BUCKET_NAME]/[FILE_NAME]
In order to reach files with link that you provided, even if they are public, you have to be signed in with your Google account.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With