You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebase Google Group
It it possible to impersonate a user with Firebase authentication? For instance in traditional app I could be logged in as an admin and have access to login as a user by the users id or email.
Mike McDonald
unread,
Apr 23, 2017, 1:44:26 PM4/23/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebase Google Group
Two ways of doing this, both requiring a trusted server (it would be pretty silly for us to allow untrusted clients to impersonate another user):
Mint a custom token with the appropriate user id/email and pass that to the client
Use the databaseAuthOverride method to act as another user (only works for the Realtime Database)
A third way would be writing your Database/Storage security rules such that admins can perform extra actions. Here's an example for the Database: