FAQ Database Discussion Community


Set key on user register object with firebase

javascript,angularjs,firebase,firebasesimplelogin
how can I change the unique Id key when pushing the registered details to Firebase? var ref = new Firebase(FIREBASE_URL + 'users'); var userInfo = { date: Firebase.ServerValue.TIMESTAMP, userData: userData.uid, firstname: user.firstname, lastname: user.lastname, email: user.email } ref.push(userInfo); ...

Authenticated user does not have permission to access data stored in Firebase

firebase,firebase-security,firebasesimplelogin
I have an authenticated user, which is given authentication through using FirebaseSimpleLogin. This user has the token: 'user':{ email: "[email protected]", firebaseAuthToken: SOME TOKEN, "id: "4", isTemporaryPassword: true, md5_hash: "aHash123", provider: "password", uid: "simplelogin:4" } I have given the authenticated user read permission under the 'rules and security' tab in firebase...

Polymer Fire-base Login Returning User as 'null'

firebase,polymer,firebasesimplelogin
so I'm trying to build a nice multi-tabbed login form using polymer and the <firebase-login> element. It looks something like this: https://ele.io/caseybaggz/paper-form One one tab, I have some social login buttons (google, twitter, fb), on the other, email/password login/register. I'm also using <app-router> on my index.html to route all my...

Manage invite codes for registration with Firebase

angularjs,firebase,angularfire,firebase-security,firebasesimplelogin
I am teaching myself AngularJS and Firebase and am developing an app with two user roles A and B. Role B should only be able to register to the site if they have a valid invite code. I am using Firebase as a backend and AngularFire bindings. I have set...

Firebase Authentication Limits

java,firebase,firebase-security,firebasesimplelogin,firebase-authentication
I am new to Firebase so any insights appreciated. I'm writing Java server side test code. I grab several users from an database and am trying to migrate the data into user authenticated nodes within Firebase. My code selects a few users from the DB and spins up a new...

return error from factory

angularjs,firebase,firebasesimplelogin
Im new to Angular JS. I'm trying to return an error back to the controller from a factory using Firebase simple login. Can someone help with this??? registrationController.controller('RegistrationController', [ '$scope' ,'$rootScope', '$firebase', '$location' , 'FIREBASE_URL' , 'Authentication', function($scope , $rootScope , $firebaseSimpleLogin, $location, FIREBASE_URL, Authentication, ) { $scope.login = function()...

Basic Queries in Firebase and AngularJS

angularjs,firebase,firebasesimplelogin
I have a Firebase that looks like this: { "jobs" : { "-Jnbc60FQGiKUubz0u6e" : { "Description" : "The sink has a leaky faucet!", "uid" : "simplelogin:4" }, "-Jnbc60FQGiKUubz0u6e" : { "Description" : "The microwave is broken", "uid" : "simplelogin:6" }, "-Jnbc60FQGiKUubz0u6e" : { "Description" : "Window Cracked", "uid" : "simplelogin:6"...

Firebase in Cordova/Phonegap: Log in using Email/Password from within app?

javascript,cordova,webview,firebase,firebasesimplelogin
I'm running a webview from a cordova app and want to authenticate a user, I know they have the OAuth strategies but I need to use the email/password combination. I'd like to keep things simple but may end up having to generate a token. Open an InAppBrowser that loads an...

How to get a keyname by its nested values in firebase?

ios,objective-c,firebase,livechat,firebasesimplelogin
My firebase is modeled this way. I want to write a query to get userID(simplelogin:1) where email is "[email protected]". Here I want to get key: "simplelogin:1" by searching with it's email address:"[email protected]" I am using firebase SDK for iOS. Can somebody suggest me a query for this? In Javascript...