【发布时间】:2018-06-07 23:41:01
【问题描述】:
firebase google 身份验证方法在 google chrome 中失败。我在开发工具控制台中看到了这两条消息。
OPTIONS https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=my-app-key&cb=1514367607784 net::ERR_QUIC_PROTOCOL_ERROR
Info: The current domain is not authorized for OAuth operations. This will prevent signInWithPopup, signInWithRedirect, linkWithPopup and linkWithRedirect from working. Add your domain (my-web-domain.com) to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.
在方法 firebase 控制台中设置了域条目。
在 google 控制台(api 和服务)中有我的 firebase web api 密钥,限制 = none,以及 OAuth2 条目,其客户端 ID 和客户端密码与 firebase 中显示的我的 firebase 项目匹配安慰。该域也在 Authorized JavaScript origins 部分中设置。授权重定向 URI 部分有一个条目 https://fbase-unique-name.firebaseapp.com/__/auth/handler
据我所知,这在一周左右前开始失败,并且只发生在 chrome 上。我已经在 chrome、firefox、egde、brave 在 linux 和 windows 上尝试过,它可以工作。 提前致谢
【问题讨论】:
-
我想知道这是否特定于 SDK 版本?似乎是一个非常奇怪的因素组合。
-
我试过最新的和几个旧的,都用最新的谷歌浏览器失败了。
-
在最新的带有 Google 身份验证的 Chrome 上为我工作。 kato-sandbox.firebaseapp.com
-
@Kato,您的示例应用程序和我的一样失败。
A network error (such as timeout, interrupted connection or unreachable host) has occurred.- chrome 版本 63.0.3239.108(官方构建)(64 位)上的错误消息。或Info: The current domain is not authorized for OAuth operations. This will prevent signInWithPopup, signInWithRedirect, linkWithPopup and linkWithRedirect from working. Add your domain (kato-sandbox.firebaseapp.com) to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab. Xg @ iframe.js:181来自隐身标签。 -
以隐身模式重试?可能是扩展或缓存问题。使用 63.0.3239.108(官方版本)(64 位)为我工作。
标签: firebase firebase-authentication