【发布时间】:2017-10-09 15:37:51
【问题描述】:
Google Cloud Endpoints 文档为可扩展服务代理配置文件中的自定义安全定义提供了此规范:
securityDefinitions:
your_custom_auth_id:
authorizationUrl: ""
flow: "implicit"
type: "oauth2"
# The value below should be unique
x-google-issuer: "issuer of the token"
x-google-jwks_uri: "url to the public key"
# Optional. Replace YOUR-CLIENT-ID with your client ID
x-google-audiences: "YOUR-CLIENT-ID"
关于如何实现这一点的文档对于 App Engine 灵活来说非常少。有没有人有一个如何设置的例子,或者他们可以证明这是可能的?特别是authorizationUrl的接口是什么?我们可以放置我们的授权服务的 URL(它提供由可扩展服务代理验证的 JWT 令牌),以便如果令牌在 authenticationURL 中无效,端点将重定向到它?
【问题讨论】:
标签: google-app-engine google-cloud-platform google-cloud-endpoints