【问题标题】:Determine Domain for Lambda inside API Gateway for Firebase "Domain not whitelisted by project"为 Firebase 的 API Gateway 内的 Lambda 确定域“项目未将域列入白名单”
【发布时间】:2020-11-20 16:19:30
【问题描述】:

我有以下设置;

CloudFront -> APIG 来源 -> Lambda(快速 REST API)-> Firebase 身份验证。

我需要将域列入白名单,我已将 APIG URL 和 CloudFront URL 添加到 Firebase 上的白名单域中;

认证>登录方式>授权域;

我已将 CloudFront 和 APIG URL 列入白名单,但出现以下错误;

  • id.cloudfront.net
  • id.execute-api.region.amazonaws.com
Could not generate verification email: 
{
    "code": "auth/unauthorized-continue-uri",
    "message": "Domain not whitelisted by project"
}

域是如图所示的寄存器

问题:为什么我仍然会收到此错误?我需要输入 lambda 函数本身的域吗?如果是这样,我在哪里可以找到这些信息?

【问题讨论】:

    标签: aws-lambda firebase-authentication aws-api-gateway whitelist


    【解决方案1】:

    https://support.google.com/firebase/answer/6400741?hl=en#:~:text=To%20use%20Firebase%20Authentication%20in,of%20your%20web%20app's%20hosts.

    找到答案了,我误解了域白名单的人。所以这是您重定向到的域,而不是来自。

    要在网络应用中使用 Firebase 身份验证,您必须将 Firebase 身份验证服务器可以在之后重定向到的域 登录用户。默认情况下,localhost 和您的 Firebase 项目的 托管域被列入白名单。您必须将整个域列入白名单 您的任何其他网络应用程序主机的名称。

    【讨论】:

      猜你喜欢
      • 2018-12-24
      • 2018-02-01
      • 2017-09-19
      • 2019-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-27
      • 2013-10-23
      相关资源
      最近更新 更多