草庐IT

Firebase-Auth

全部标签

firebase规则仅适合一个用户

我很难编写Firebase数据库规则。我想仅向一个用户即管理用户提供写书权限。所有其他人都将获得阅读许可。请帮助我编写Firebase数据库规则,以限制其他用户编写。看答案"rules":{"users":{"$uid":{".read":"auth!=null",".write":"$uid===adminUID"}}}这将帮助您

node.js - Auth0 - 如何通过 Auth0 在本地主机上使用 mongoDB

我在Auth0上创建了一个名为local-mongo的新数据库连接,我正在尝试使用Create脚本在我的本地mongoDB上创建一个用户,但我不断收到此套接字挂起错误:[Error]Error:sockethangupatcreateHangUpError(_http_client.js:211:15)atSocket.socketOnEnd(_http_client.js:303:23)atemitNone(events.js:72:20)atSocket.emit(events.js:166:7)atendReadableNT(_stream_readable.js:913:12)

mongodb - 无法访问 http ://localhost:28017 when enable auth for mongod

我无法访问http://localhost:28017为mongod启用身份验证时;它总是弹出用户名/密码,即使我填写了正确的用户名/密码。我在初始参数文件中启用了HTTP&REST。我使用的YAML格式参数文件:net:port:27017http:enabled:trueRESTInterfaceEnabled:truesecurity:authorization:enabled但是当我禁用mongod授权时,我可以登录http://localhost:28017成功,无需填写用户名/密码。这是什么原因?3.0授权下不支持HTTPconsole吗?我的版本是3.0.2。

node.js - 从 Firebase 迁移到自己的服务器和后端

我们目前正在使用Firebase作为构建聊天应用程序的后端,并且我们正在显着发展。我们使用Firebase是因为它的实时同步和离线支持缩短了我们的上市时间。但在不久的将来,我们计划迁移到我们自己的Node和mongo服务器,因为实时数据库的定价太高+我们必须在使用firebase时有很多约束。有人可以建议我们如何将数据直接从firebase迁移到自己的服务器,以及在这种情况下需要牢记哪些事项。 最佳答案 使用MongoDB+Socket.IO这种组合为您提供了很大的自定义空间,因为您可以自定义用户需要双向数据绑定(bind)功能的部

如何更新firebase

我正在使用离子2。我需要使用firebase3更新数据到firebase这是我的代码。importfirebasefrom'firebase';up(){varv=this.Editflat.value;firebase.database().ref('/flats').update(this.key,v).then(res=>{console.log("UPDATED",res)});}我有这个错误Error:Firebase.updatefailed:Firstargumentmustbeanobjectcontainingthechildrentoreplace.如何解决此问题?请给我建

Mariadb,MySQL与Firebase Cloud功能连接

我目前正在使用firebase云功能。我想连接到Mariadb(我的客户之一)。我的客户不给我API,因此我必须使用FirebaseCloud功能发送SQL查询。但是,如果我尝试连接并发送查询时,MySQL会向我发送错误。下面是下面。{Error:connectETIMEDOUTatConnection._handleTimeoutError(/user_code/node_modules/mysql2/lib/connection.js:188:13)atontimeout(timers.js:365:14)attryOnTimeout(timers.js:237:5)atTimer.lis

node.js - 指定数据库时出现 Auth failed 错误

我正在尝试从我的Web应用程序连接到mongodb。但是,当我指定要连接的数据库时,我从mongo收到了authfailederror。如果我不指定db,则连接成功。我已经检查了拼写以及数据库是否使用mongo命令行showdbs退出vardbURI='mongodb://root:pwd@localhost:27017/dbname';mongoose.connect(dbURI,function(err){if(err)throwerr;});C:\Users\David\Documents\Bitbucket\productWebsite\node_modules\mongoos

node.js - 错误消息 : MongoError: bad auth Authentication failed through URI string

我正在尝试通过mongo给我的连接字符串连接到我的mongoDB服务器:"mongodb+srv://david:password@cluster0-re3gq.mongodb.net/test?retryWrites=true"在我的代码中,我像这样通过mongoose调用连接(显然输入我的密码):constmongoose=require('mongoose');constdb='mongodb+srv://david:@cluster0-re3gq.mongodb.net/test?retryWrites=true'mongoose.connect(db,{useNewUrlPa

php - Laravel Firebase 数据同步失败

首次将Firebase集成到“RESTFULAPI”中。数据必须同步到两个数据库,即MySQL和Firebase,但数据在Firebase中没有同步。安装firebasesynctraitComposer需要mpociot/laravel-firebase-sync将Firebase集成到我的API中的配置代码:-'firebase'=>['api_key'=>'AIzaSyCbOasfdsfdsfds','auth_domain'=>'restasdsaful-asdfs.firebaseapp.com','projectId'=>'restful-23aasdfsf60','mes

java - 如何修复 java.sql.SQLException : Server is running in --secure-auth mode, 但 'user' @'host' 有旧格式的密码; (...)?

将MySQL5.1升级到5.6后,尝试启动JBoss失败,出现以下异常:java.sql.SQLException:Serverisrunningin--secure-authmode,but'user'@'localhost'hasapasswordintheoldformat;pleasechangethepasswordtothenewformat如何解决这个问题? 最佳答案 此问题由以下人员修复:1)更新'user'用户的密码哈希值UPDATEmysql.usersetpassword=PASSWORD('mypasswor