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
Post a Comment