Cloud Endpoints Portal 需要 GCP / IAM 权限,否则用户会得到 No APIs available that you have permission to view

Cloud Endpoints Portal requires GCP / IAM permissions, otherwise the user gets No APIs are available that you have permission to view

我在我的 App Engine 项目中实施了 Cloud Endpoints Framework,我想从已弃用的 API Explorer 迁移到新的 Endpoints 门户。

问题是,与旧的 API Explorer 不同,Endpoints 门户并非对所有人开放。当无权访问 GCP 项目的用户尝试访问门户时,他会得到:

No APIs are available that you have permission to view

有没有办法制作云端点门户 public,并让每个端点管理身份验证部分?

无法访问 Endpoints 门户 public。

您可以在此 link.

找到关于此主题的完整讨论

讨论中还提出了一个可能的解决方案:

One other option in the meantime is that you could use Google groups for authentication --- that is, you can add a Google group as "Service Consumer", and then every member of that group can view the API + portal.

但如果您想要完全访问 public,而不仅仅是您的客户/用户,这个解决方案不是最好的,您应该选择另一个。

SwaggerUI 可能是一个很好的解决方案:它是从您的 OpenAPI 文档自动生成的,任何用户都可以访问。