mar*_*142 2 c++ rest firebase firebase-authentication
我想通过 REST api 在桌面应用程序中使用 Firebase 实时数据库(不是 Cloud Firestore)。该应用程序是用 C++ 编写的,我不需要任何用户身份验证(如 Google 或 Facebook 登录),但我想保护我的数据库,所以我需要匿名身份验证。
最好的做法是什么?我找不到任何有关此的信息。
您始终可以使用 REST API 以匿名用户登录并获取 Firebase ID 令牌以与数据库一起使用。匿名登录:https : //firebase.google.com/docs/reference/rest/auth/#section-sign-in-anonymously
向数据库发送经过身份验证的请求:https : //firebase.google.com/docs/database/rest/auth#authenticate_with_an_id_token
归档时间: |
|
查看次数: |
1178 次 |
最近记录: |