Hello all,
I'm not sure how to authenticate users with this lib using oauth. I've been building an app to communicate with GC Storage and I started with storage-getting-started-php.
Everything was coming up nicely until I realized that that project is using google-api-php-client instead of, well, this one google-cloud-php.
In the README.md file of google-api-php-client says I should be using this one if I'm looking to call the Cloud Platform APIs, so I decided to switch to this one. After switching to this one, I got the service account credentials working nicely and I can request bucket and objects information but I don't seem to find any info on how to implement user authentication, which the other repository was using.
Without user authentication, I can only get objects from the bucket if "user=>allUsers" as read permissions, which is something I don't want to have.
Can I use user authentication with this lib? Or do I have to import a different lib on top of it? Or ultimately go back to the original google-php api I was using intially.
Thank you!
该提问来源于开源项目:googleapis/google-cloud-php