gpt4 book ai didi

firebase - 具有 Firebase 身份验证的 AWS AppSync

转载 作者:行者123 更新时间:2023-12-02 21:54:43 25 4
gpt4 key购买 nike

我想使用 Firebase Auth 作为 AWS AppSync 的授权服务。在 AppSync 设置中,我尝试将 Firebase Auth 添加为 OpenID Connect 提供商,但似乎我做错了什么,因为我在尝试使用 Firebase Auth tokenId 发出请求时收到此错误:

{
"errors": [
{
"errorType": "UnauthorizedException",
"message": "Missing authorization header"
}
]
}

在 AppSync 中,我使用以下设置:

  • 授权类型:OpenID Connect
  • OpenID Connect 提供商域(颁发者 URL):https://securetoken.google.com/<Firebase Project ID>
  • 客户端 ID:<Firebase Api Key>
  • 发布于 TTL:0
  • 验证时间 TTL:0

执行查询时,我使用 TokenId由 Firebase 提供,而不是来自联合身份提供商(例如 Facebook 或 Google)。

最佳答案

显然,我不需要在设置中指定客户端 ID。没有它也能正常工作。

关于firebase - 具有 Firebase 身份验证的 AWS AppSync,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54040424/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com