简体   繁体   English

gcp 签名的 url 是否与 google pub/sub 一起使用?

[英]does gcp signed url work with google pub/sub?

In my application design, there are many clients who push events to a google pub/sub topic.在我的应用程序设计中,有许多客户端将事件推送到 google pub/sub 主题。 It is not good to have service account for each client.每个客户都有服务帐户是不好的。 Therefore, I was looking for a way where clients can push events to pub/sub without having service account.因此,我一直在寻找一种方法,让客户可以在没有服务帐户的情况下将事件推送到 pub/sub。 I found signed url.我发现签名的 url。 But looks like it is built only for cloud storage.但看起来它只是为云存储而构建的。 How can I achieve the same signed url feature to push event to pub/sub?如何实现相同的签名 url 功能将事件推送到发布/订阅?

Most Google Cloud Services use OAuth for authorization.大多数 Google Cloud 服务使用 OAuth 进行授权。 Pub/Sub does not support Signed URLs. Pub/Sub 不支持签名 URL。

Signed URLs are designed to be used by web browsers to access objects stored in Cloud Storage.签名 URL 旨在供 web 浏览器用于访问存储在 Cloud Storage 中的对象。 The format of Signed URLs is HTTP centric (HTTP Method, Content-Type, etc.).签名 URL 的格式以 HTTP 为中心(HTTP 方法、内容类型等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM