我想将Firebase Auth用作AWS AppSync的授权服务。
在AppSync设置中,我尝试将Firebase Auth添加为OpenID Connect提供程序,但由于在尝试通过Firebase Auth tokenId
进行请求时遇到此错误,因此似乎做错了:
{
"errors": [
{
"errorType": "UnauthorizedException",
"message": "Missing authorization header"
}
]
}
在AppSync中,使用以下设置:
https://securetoken.google.com/<Firebase Project ID>
<Firebase Api Key>
0
0
执行查询时,我使用的是Firebase提供的TokenId
,而不是使用来自联合身份提供商(例如Facebook或Google)的信息。
答案 0 :(得分:0)
显然,我不需要在设置中指定客户端ID。没有它就可以正常工作。