基于 Google 个用户帐户的云存储 ACL
cloud storage ACL based on Google user accounts
- 将 Google 用户作为所有者添加到资源
- 尝试通过https://storage.googleapis.com/example.bucket.com/test.htmllink
访问资源
- Returns:匿名调用者没有 storage.objects.get 访问对象
这不是 Google 基于用户的 ACL 的重点吗?
您尝试访问的 URL storage.googleapis.com
是 XML API。有关详细信息,请参阅 Request Endpoints 文档。
本质上,您收到该错误是因为该端点使用 OAuth 进行身份验证。相反,您应该使用 Authenticated Browser Downloads 端点,它根据用户的登录 cookie 进行身份验证。
对于您的情况,以下 URL 会起作用:
https://storage.cloud.google.com/example.bucket.com/test.html
- 将 Google 用户作为所有者添加到资源
- 尝试通过https://storage.googleapis.com/example.bucket.com/test.htmllink 访问资源
- Returns:匿名调用者没有 storage.objects.get 访问对象
这不是 Google 基于用户的 ACL 的重点吗?
您尝试访问的 URL storage.googleapis.com
是 XML API。有关详细信息,请参阅 Request Endpoints 文档。
本质上,您收到该错误是因为该端点使用 OAuth 进行身份验证。相反,您应该使用 Authenticated Browser Downloads 端点,它根据用户的登录 cookie 进行身份验证。
对于您的情况,以下 URL 会起作用: https://storage.cloud.google.com/example.bucket.com/test.html