使用 botkit-storage-firebase 模块验证 firebase
Authenticate firebase with botkit-storage-firebase module
我正在使用 botkit,我正在尝试通过 firebase 使存储正常工作。
我正在使用 botkit-storage-firebase 模块:https://github.com/howdyai/botkit-storage-firebase
然而,当我尝试保存任何东西(或获取任何东西)时,我从 Firebase
得到 Permission denied
controller.storage.users.save({ id: 'words', words: response.words });
我必须将数据库的安全规则设置为:
{
"rules": {
".read": true,
".write": true
}
}
然而,为了能够使用它,让我的数据库没有安全性显然不是我想要的。
如何使用 botkit-storage-firebase
模块对 Firebase 进行身份验证?
我 运行 在使用 Botkit 和 Firebase 时遇到了同样的问题。结果 botkit-storage-firebase 正在使用与当前版本不兼容的 Firebase 2.0。我发现了一个尚未合并的拉取请求并使用了该回购协议,现在一切正常。您也可以改回您的安全规则。
这是 link 的叉子- https://github.com/esjay/botkit-storage-firebase
我正在使用 botkit,我正在尝试通过 firebase 使存储正常工作。
我正在使用 botkit-storage-firebase 模块:https://github.com/howdyai/botkit-storage-firebase
然而,当我尝试保存任何东西(或获取任何东西)时,我从 Firebase
得到Permission denied
controller.storage.users.save({ id: 'words', words: response.words });
我必须将数据库的安全规则设置为:
{
"rules": {
".read": true,
".write": true
}
}
然而,为了能够使用它,让我的数据库没有安全性显然不是我想要的。
如何使用 botkit-storage-firebase
模块对 Firebase 进行身份验证?
我 运行 在使用 Botkit 和 Firebase 时遇到了同样的问题。结果 botkit-storage-firebase 正在使用与当前版本不兼容的 Firebase 2.0。我发现了一个尚未合并的拉取请求并使用了该回购协议,现在一切正常。您也可以改回您的安全规则。
这是 link 的叉子- https://github.com/esjay/botkit-storage-firebase