Firebase AngularJS full data access

I'm building an app based on Firebase + AngularJS. I'm using User management service by Firebase. I'm able to get all data for Authenticated user, however, I'm not able to retrieve all user data as admin. How can I get full access to Firebase data.

Thanks!

Answers


As Frank mentioned in the comment, Firebase doesn't make user account information available to the admin. Rather, some information is available on the client after authentication and it could be sent to be stored as explicit data in Firebase. The link Frank provide in the comment explains how to do this.

Applications do not automatically store profile or user state. To persist user data you must save it to your database. The callback function will return an object containing the data for the authenticated user, which you can then write to your database.

Here is the core of the example

var ref = new Firebase("https://<YOUR-FIREBASE-APP>.firebaseio.com");
ref.onAuth(function(authData) {
  if (authData && isNewUser) {
  // save the user's profile into the database so we can list users,
  // use them in Security and Firebase Rules, and show profiles
  ref.child("users").child(authData.uid).set({
   provider: authData.provider,
   name: getName(authData)
  });
 }
});

Need Your Help

Anyone know what tumblr is written in

tumblr

Does anyone know what tumblr is written in? I have been trying to figure it out.

Django database migration error: duplicate key

mysql django database-migration on-duplicate-key

I'm working on migrating a database and I'm not sure why I'm getting this error. Does anyone know how to fix this? Before this, I created a new database using mysql and granted access to users. I h...