0

I've got Firebase Database working on iOS.

Everywhere the doc tells me that using

{
  "rules": {
      ".read": true,
      ".write": true
  }
}

Will make the DB open to "the world". So I want to limit access to my app only. The doc says how to append user auth and rules according til this. But I just want general auth for the app, not per user.

How do I achieve that?

Thanks,

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
esbenr
  • 1,356
  • 1
  • 11
  • 34
  • What do you mean by "general auth for the app"? What users are allowed to read/write the data and which users aren't? – Frank van Puffelen Oct 04 '16 at 14:40
  • Any user, using my specific app. How do I grant requests from the app, not per user? If someone tries to call my database from i.e. Postman, it should be illegal. – esbenr Oct 04 '16 at 19:20
  • That's not possible. See http://stackoverflow.com/questions/18005984/how-to-prevent-other-access-to-my-firebase – Frank van Puffelen Oct 04 '16 at 20:44

0 Answers0