Android firebase password verification

I have a forum that I am trying to create with firebase. Only users who know the password can access some sub forums. When joining, the client checks the password of the sub forum, and then checks whether the password entered is correct

Is there a way to replace password authentication on the server side?

resolvent:

I suggest you use other methods to solve this problem. I suggest you keep a list of users who can access the sub forum in firebase (only administrators can write this list), and use firebase security rules to check whether anyone can read / write to the sub forum instead of giving a password according to the list

The rules of the sub forum are as follows:

"forums":{
      "$subforum_id": {
        ".read": "auth != null && root.child('subforums').child($subforum_id).hasChild(auth.uid)",
        ".write": "auth != null && root.child('subforums').child($subforum_id).hasChild(auth.uid)"
      }
    }

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>