Firebase只读,无来自应用程序的身份验证 [英] Firebase Read Only With No Authentication from App

查看:59
本文介绍了Firebase只读,无来自应用程序的身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Firebase开始,基本上,我只想在Firebase中存储数据,而我应用程序中的用户只会做只读操作.从我到目前为止所读的内容来看,firebase似乎仅适用于身份验证,并且我已经阅读了有关匿名身份验证的内容.但是我看不到通过匿名身份验证的优势,因为基本上用户永远不会升级为永久"用户.

I'm starting with Firebase, and basically, i just want to store data in Firebase, and user from my app will only do a read only. From what i read so far, it seems that firebase only works with authentication, and i've read about anonymous authentication. But i don't see the advantage of being authenticated anonymously, since basically the user will never be upgraded to "permanent" user.

我只需要用户使用我的应用程序(并且仅通过我的应用程序)来获取数据而无需进行身份验证.

All i want is the user use my app (and only through my app) to get data without needing to authenticate.

实现此目标的最佳方法是什么?我是否创建用户名和密码,并将其用于我应用程序中的每个人?

What is the best way to achieve this ? Do i create a username and password, and use this for everyone in my app ?

我是否保留匿名身份验证?由于我起初将使用Firebase Spark Free,并且它说实时数据库只能同时建立100个连接,因此每次创建匿名身份验证都会被视为一直打开连接,因此我的应用程序仅限于100个连接/用户?在匿名连接方面,Spark Free是否有限制?

Do i stay with anonymous authentication ? Since i will at first use the Firebase Spark Free, and it says that only 100 simultaneous connection for realtime database, do each creation of anonymous authentication will be considered as opening a connection all the time, thus limited my app to 100 connection/user only ? Is there a limitation for Spark Free in terms of anonymous connection ?

谢谢

推荐答案

您可以使用Firebase 而无需 身份验证. Firebase官方频道上的某些 Youtube教程如何在Firebase数据库和存储上禁用身份验证.仅出于生产目的禁用read身份验证.

You can use Firebase without authentication. Some of the Youtube tutorials on the official Firebase channel even go as far as to show you how to disable authentication on the Firebase Database and Storage. Only disable read authentication for production purposes.

存储规则.

数据库规则.

这篇关于Firebase只读,无来自应用程序的身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆