Ionic Framework and Firebase 3.x version: This domain is not authorized for OAuth operations for your Firebase project
Ionic Framework and Firebase 3.x version: This domain is not authorized for OAuth operations for your Firebase project
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.
Answer by Muhammad talha for Ionic Framework and Firebase 3.x version: This domain is not authorized for OAuth operations for your Firebase project
i have same issue but i solved it by creating new firebase project.
Answer by chanat for Ionic Framework and Firebase 3.x version: This domain is not authorized for OAuth operations for your Firebase project
Ok, here is my temporary solution:
I import both Firebase SDK v.2.x and Firebase SDK 3.x in my ionic project. I use version 2.x for Facebook authentication on iOS then I use version 3.x to get access to all new features on Firebase such as Storage and so on.
Hopes this helps.
Answer by Michel Strotz for Ionic Framework and Firebase 3.x version: This domain is not authorized for OAuth operations for your Firebase project
Using the "temporary" solution with both SDKs (or just v2.xx) leaves me with a similar error message:
Error: permission_denied at /: Client doesn't have permission to access the desired data.
Frustrated, I changed the Database rules in the Firebase Console to
{ "rules": { ".read": true, ".write": true } }
in order to be able to work until there's a real solution. Now the version 2 stops throwing the mentioned error, but the XHR response returns a Login failed error:
Login Failed! Error: Unable to contact the Firebase server.(?)
It's not a huge progress to the initial problem, but maybe somebody knows if both errors are somehow connected and has a solution?
Answer by alfongj for Ionic Framework and Firebase 3.x version: This domain is not authorized for OAuth operations for your Firebase project
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).
Answer by A. DC for Ionic Framework and Firebase 3.x version: This domain is not authorized for OAuth operations for your Firebase project
I got the same error over data connection with SignInWithPassword... Very annoying.. Otherwise I need to connect via wifi and pre-approve the IP address :x
Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72
0 comments:
Post a Comment