如何在java中创建firebase管理员用户进行身份验证 [英] How to create firebase admin user for authentication in java
问题描述
我有一个带有用户身份验证的基于 java 的 firebase 项目.我想创建一个管理员用户并允许管理员读取/写入用户验证/验证.
I have a firebase java based project with user authentication. I want to create an Admin user and allow admin to read/wite users verification/validation.
仅供参考,我是火力全开的菜鸟.我还没有找到任何有意义的资源.
FYI, im Total firebase noob. and I have'nt found any meaningful resource on this.
推荐答案
Firebase 中没有管理员用户"这样的东西.您必须在您的应用程序中为此创建逻辑.如何执行此操作取决于您应用的逻辑(例如您使用的 Firebase 功能).
There is no such thing as an "admin user" in Firebase. You will have to create the logic for that in your app. How to do this, depends on the logic of your app (and for example the Firebase features you use).
如果您使用 Firebase 数据库,以下是不错的起点:
If you're using the Firebase Database, these are good places to start:
- 有关基于用户的安全性的 Firebase 数据库文档
- 这个关于基于角色的安全性的要点
- 问:如何实现基于角色的访问火力控制
- 问:Firebase:根据用户角色设置安全规则一个>
- 博文:在 Firebase 中实现角色
- 大多数热门搜索结果在此
这篇关于如何在java中创建firebase管理员用户进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!