Angular:
^5.1.0
Firebase:
^4.9.0
AngularFire:
^5.0.0-rc.4
Other (e.g. Ionic/Cordova, Node, browser, operating system):
Failing test unit, Plunkr, or JSFiddle demonstrating the problem
Use Firebase Authorization angular api to do a federated authentication with Facebook, screen pops up and immediately closes with complains about missing configurations
Steps to set up and reproduce
localhost is added to Firebase -> Authentication -> Sign-in Method -> Authorized domainsSample data and security rules
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
* Errors in the JavaScript console *
Info: The current domain is not authorized for OAuth operations. This will prevent signInWithPopup, signInWithRedirect, linkWithPopup and linkWithRedirect from working. Add your domain (localhost) to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.
* Output from firebase.database().enableLogging(true); *
* Screenshots *
Login with Facebook to work as expected
Throws error code auth/popup-closed-by-user, with message about domain not added to OAuth redirect domains list.
Fixed issue with solutions found here
and here
Thanks @isawk - this really helped me out!
Adding support email to the OAuth consent screen worked for me.
Most helpful comment
Fixed issue with solutions found here
and here