Web上的Firebase身份验证内部错误“注册被阻止”

Zed*_*Zed 2 web firebase firebase-authentication

我将Firebase Auth用于网站,并选择了密码验证和Google登录。当我运行它时,我得到以下信息:

{"error":{"code":403,"message":"Requests to this API identitytoolkit method google.cloud.identitytoolkit.v1.AuthenticationService.SignUp are blocked.","errors":[{"message":"Requests to this API identitytoolkit method google.cloud.identitytoolkit.v1.AuthenticationService.SignUp are blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED"}}

我已经从Firebase控制台启用了密码和Google登录,并且还在Google Cloud Platform控制台中启用了Identity Toolkit API,但是仍然出现此错误。

小智 16

就我而言,apiKey在Angular的环境文件中,只允许使用我限制的几个Google Cloud API。

  1. 我转到https://console.cloud.google.com,选择了该项目(当然与Firebase项目相同),然后选择API&Services > Credentials
  2. 在API密钥列表中,我寻找了apiKeyFirebase项目概述中提供的API密钥,单击它并进入选项卡API限制。
  3. 我在其中添加了选择框,将Identity Toolkit API添加到允许的API列表中。


Jav*_*haq 8

由@Marco Maccio 执导

我去了https://console.cloud.google.com,选择了项目

(same as the Firebase project of course)

然后 API 和服务 > 凭证。在 API 密钥列表中,

I looked for the same API key given in the project overview of Firebase,
Run Code Online (Sandbox Code Playgroud)

单击它,然后转到选项卡 API 限制。通过选择框,我将 Identity Toolkit API 添加到允许的 API 列表中。

或者让它不限制键

在此处输入图片说明

在此处输入图片说明