【发布时间】:2018-09-06 14:04:28
【问题描述】:
是否需要在 AppEngine Standard Python 3.7 运行时中验证来自 IAP 的签名标头?
IAP 文档没有提及 Python 3.7 运行时的细节。
IAP documentation 说:
- AppEngine 标准版应使用用户 API
- 需要验证才能保护 AppEngine Flex 中的应用程序
用户 API 不适用于 Standard 3.7。签名的标题是。可以验证标题。
我可以看到 AppEngine 环境添加了一些标头。我想知道 X-Appengine- 值是否可以被隐式信任(即 AppEngine 在验证 IAP 的标头后是否附加这些值)?
X-Appengine-User-Id: <user id>
X-Appengine-Auth-Domain: <domain>
X-Appengine-User-Email: <user email>
...
X-Goog-Iap-Jwt-Assertion: <assertion>
X-Goog-Authenticated-User-Email: accounts.google.com:<user email>
X-Goog-Authenticated-User-Id: accounts.google.com:<user id>
【问题讨论】:
标签: google-app-engine google-app-engine-python google-iap