【发布时间】:2023-03-20 14:40:01
【问题描述】:
Firebase 具有允许使用自定义身份验证变量初始化连接的功能。
示例中的链接:
# Fetch the service account key JSON file contents
cred = credentials.Certificate('path/to/serviceAccountKey.json')
# Initialize the app with a custom auth variable, limiting the server's access
firebase_admin.initialize_app(cred, {
'databaseURL': 'https://databaseName.firebaseio.com',
'databaseAuthVariableOverride': {
'uid': 'my-service-worker'
}
})
我使用的是 c#,什么语言没有 SDK……我选择使用 REST API,但我没有在文档中找到如何使用上述代码中的功能。
有没有办法在 REST for Firebase 中使用 databaseAuthVariableOverride?p>
【问题讨论】:
标签: c# firebase firebase-realtime-database firebase-authentication