<!DOCTYPE html>
<html ng-app="authdemo">
<head>
<script data-require="angular.js@1.3.14" data-semver="1.3.14" src="https://code.angularjs.org/1.3.14/angular.js"></script>
<!-- Firebase -->
<script src="https://cdn.firebase.com/js/client/2.2.2/firebase.js"></script>
<!-- AngularFire -->
<script src="https://cdn.firebase.com/libs/angularfire/1.0.0/angularfire.min.js"></script>
<link href="style.css" rel="stylesheet" />
<script src="script.js"></script>
</head>
<body ng-controller="authCtrl">
<h1>AngularFire Auth demo!</h1>
<div>Please look at console log to find lots of 404 errors and the response from the $authWithPassword is an error:</div>
<div>Error: This custom Firebase server ('firebaseapp.com') does not support delegated login.</div>
</body>
</html>
angular.module('authdemo', ['firebase'])
.controller('authCtrl', function($scope, $log, $firebaseAuth) {
var ref = new Firebase('https://zerrtech-sandbox.firebaseapp.com');
var auth = $firebaseAuth(ref);
auth.$authWithPassword({
email: 'demo@zerrtech.com',
password: 'demo'
}).then(function(authData) {
$log.info("Login Successful:");
$log.info(authData);
}).catch(function(error) {
$log.info("Login Failed:");
$log.info(error);
});
})
;
/* Styles go here */