Reputation: 343
I've created a form in angular where users can enter some data. These users don't need to authenticate in order to use this form. So technically every user that calls this online form is able to send data.
As Firebase is being used as backend, I need to somehow authenticate my angular project with it. I don't want to allow read / write operations to everyone, so there must be some sort of minimum auth.
Now I know I could enable email/password authentication, and store these credentials for my app, but this somehow seems quite cheesy.
Is there a more elegant solution to this?
Thanks
I'm authenticating via email/password now. So I've created email/password credentials in firebase console, and use these in my application to authenticate. Thanks to all.
Upvotes: 1
Views: 271
Reputation: 30868
I don't exactly understand what you want. You want authenticated access but don't want email/password or federated (Google, Facebook, etc) sign in. Why not use anonymous sign-in then? With anonymous sign-in you also have the ability later to upgrade the user to non-anonymous if that is needed later on.
Upvotes: 0
Reputation: 19640
Make use of Firebase Authentication Via Google or Facebook etc.. Check this page for reference.
The prerequisites you need to set this up in Angular
A Full Working Example.
You can also find link to that code over in that page
Upvotes: 1