Ionic Framework和Firebase 3.x版本:此域未授权用于您的Firebase项目的OAuth操作 [英] Ionic Framework and Firebase 3.x version: This domain is not authorized for OAuth operations for your Firebase project
问题描述
$ b 此域未授权用于您的Firebase项目的OAuth操作。在Firebase控制台中编辑授权网域列表。
在Firebase上,我已将localhost和127.0.0.1添加到我的授权网域名单。所以我不知道该怎么做。
有关您的信息,我不会在我的项目中使用WKWebView。
有没有人可以告诉我我能解决这个问题吗?请指教。
错误此域未授权用于您的Firebase项目的OAuth操作。从Firebase控制台编辑授权域列表
只能防止 signInWithPopup()
signInWithRedirect()
linkWithPopup()
和 linkWithRedirect()
操作。每一个其他函数,包括 signInWithCredential()
,都应该可以正常工作。
我相信你会看到这个错误,应用程序没有一个真正的域,这是我上面提到的4个功能的要求。
你的问题的解决方案将是忽略错误(这是只是信息)而不是使用 signInWithPopup
signInWithRedirect
linkWithPopup
或 linkWithRedirect
。相反,使用OAuth库(例如 ngCordovaOAuth ),然后使用 auth()。signInWithCredential(...)
(请参阅Twitter示例说明 here )。
I am developing an iOS app using Ionic Framework and Firebase. I have updated Firebase SDK to version 3.x in my project. What I am trying to do is to authenticate the user with Facebook on a real device. Everything works fine when I test it on a browser. However, whenever I run on a real iOS device, I always get the following error:
This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.
On Firebase, I have already added "localhost" and "127.0.0.1" to my authorized domain list. So I am not sure what to do right now.
For your information, I do not use WKWebView in my project.
Does anybody here can tell me how I can solve this? Please advice.
The error "This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console."
only prevents signInWithPopup()
signInWithRedirect()
linkWithPopup()
and linkWithRedirect()
operations from working. Every other function, including signInWithCredential()
, should work.
I believe that you are seeing this error because ionic apps do not have a real domain, and this is a requirement for the 4 functions I mentioned above.
The solution to your problem would be to ignore the error (it is just informational) and not use signInWithPopup
signInWithRedirect
linkWithPopup
or linkWithRedirect
. Instead, use a library for OAuth such as ngCordovaOAuth and then use auth().signInWithCredential(...)
(see example instructions for Twitter here).
这篇关于Ionic Framework和Firebase 3.x版本:此域未授权用于您的Firebase项目的OAuth操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!