【发布时间】:2016-05-24 14:30:59
【问题描述】:
医生说
Once a user authenticates, the auth variable in your Firebase Database Rules rules will be populated with the user's information. This information includes their unique identifier (uid) as well as linked account data, such as a Facebook id or an email address, and other info.
我用谷歌在我的应用程序中进行了验证,但是当尝试读取数据库时它返回了
Firebase Database error: Permission denied
这是我的规则:
{
"rules": {
"msgs":{
".read": "auth != null && auth.provider == 'google'",
".write":"auth != null && auth.provider == 'google'"
}
}
}
【问题讨论】:
标签: android firebase firebase-realtime-database firebase-authentication