Postman - 访问 API 受身份验证保护:Google Identity Aware Proxy 后面的 Bearer Token

Postman - Access API that secured by Authentication: Bearer Token behind Google Identity Aware Proxy

背景: 我有一个 API,之前 运行ning 在 VPN 后面。 API 它为某些路径自行实现 JWT 身份验证,因此我们必须附加:

Authorization: Bearer <jwt_token xxxx>

我们只是将 API 更新为 运行 Google Identity Aware Proxy,并遵循官方文档 here。除了需要 JWT 身份验证的每条路径外,一切都运行良好。 IAP机制还使用:

Authorization: Bearer xxxx

并将覆盖现有的 Authentication: header。在不更改现有代码的情况下有什么建议吗?

谢谢。

按照 John 的建议,您可以使用两个单独的 headers 作为标记。
如果遇到this error, you can report it via Public Issue Tracker.
还有一个类似的案例正在跟踪 here,您可能会发现它有帮助。