Version info
Angular:
^5.1.0
Firebase:
^4.9.0
AngularFire:
^5.0.0-rc.4
Other (e.g. Ionic/Cordova, Node, browser, operating system):
How to reproduce these conditions
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
- Copy Firebase app configurations from Project Settings > "Add Firebase to your web app"
- Ensure
localhost is added to Firebase -> Authentication -> Sign-in Method -> Authorized domains
Sample data and security rules
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
Debug output
** 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 **
Expected behavior
Login with Facebook to work as expected
Actual behavior
Throws error code auth/popup-closed-by-user, with message about domain not added to OAuth redirect domains list.
Version info
Angular:
^5.1.0
Firebase:
^4.9.0
AngularFire:
^5.0.0-rc.4
Other (e.g. Ionic/Cordova, Node, browser, operating system):
How to reproduce these conditions
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
localhostis 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) -->
Debug output
** 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 **
Expected behavior
Login with Facebook to work as expected
Actual behavior
Throws error code auth/popup-closed-by-user, with message about domain not added to OAuth redirect domains list.