Google Cloud Pub/Sub Publishing from Browser - How does Auth work? -


i have requirement use google cloud pub/sub api directly browser ( similar ga script). wondering how can in handle auth without requiring going through back-end server.

i want invoke cloud pub/sub api directly browser. tried , says need authenticate first , issue how secure auth token.

is there javascript library available can use in browser ( not backend) invoke google pub/sub api.

thanks in advance

the general approach in javascript authorizing , making authorized requests google apis shown @ https://developers.google.com/api-client-library/javascript/samples/samples#authorizingandmakingauthorizedrequests -- it's not specific cloud pubsub api, should work all google apis. similarly, https://developers.google.com/api-client-library/javascript/start/start-js general javascript access google apis.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -