草庐IT

firebase-authentication

全部标签

javascript - firebase 查询方法 startAt() 采用区分大小写的参数

这段代码工作正常。我想要的唯一改进是-当我传递“Pi”时,它获取所有以名称“Pi”开头的项目对象,但是当我输入“pi”时它什么都不返回!这意味着我希望此方法startAt(itemName)不区分大小写。所以在这种情况下,它应该适用于任何东西(小写或大写)“Pi”或“pi”等。//5.GetmenuitemsfromRestaurantMenuthis.getMenuItemFromRestaurantMenu=function(callback,itemName){varref_restMenu=firebase.database().ref().child('Restaurants

javascript - Firebase 警告 : Using an unspecified index

对于我在JavaScript查询中使用的每个orderByChild,我都会从Firebase收到这条警告消息:FIREBASEWARNING:Usinganunspecifiedindex.Consideradding".indexOn":""at/tablestoyoursecurityrulesforbetterperformance到目前为止,我的查询运行得相当快,所以我认为没有必要包含indexOn。只是想知道负面影响是什么?此外,我该如何实际禁用警告,因为它们在调试时非常烦人。 最佳答案 如果您处于开发阶段,您将感觉不到

javascript - Uncaught ReferenceError : Firebase is not defined

我正在尝试按照有关在firebase中设计数据库的教程进行操作,但在JavaScript控制台中出现以下错误:UncaughtReferenceError:Firebaseisnotdefined这是教程的链接,我试图在JavaScript控制台中运行的代码片段是:https://www.firebase.com/blog/2014-11-04-firebase-realtime-queries.htmlvarref=newFirebase("https://dinosaur-facts.firebaseio.com/dinosaurs");ref.orderByChild("heig

php - PHP 中的 YouTube 分析 API : I keep getting "Insufficient permissions" while authenticated

我正在尝试使用OAUTH2在PHP中访问YouTubeAnalyticsAPI。在我的场景中,我首先检索channel数据,它工作正常(即使使用经过身份验证的段)。然后我在我的Analytics-call中解析channel-id。YouTubeAnalyticsAPI在我的GoogleDeveloperConsole中激活。我最终遇到以下错误:Anclienterroroccurred:ErrorcallingGEThttps://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3D##MY_CHANNEL

php - 带有 LDAP 错误 : User authentication is temporarily unavailable 的 Dokuwiki

我正在尝试在我的本地计算机上使用LDAP设置Dokuwiki。Dokuwiki版本是2014-05-05“PonderStibbons”身份验证设置authtype:authldap插件Authldap(捆绑插件)设置plugin»authldap»server:localhostplugin»authldap»port:10389plugin»authldap»usertree:ou=People,o=sevenSeasplugin»authldap»grouptree:ou=Groups,o=sevenSeasplugin»authldap»userfilter:plugin»au

php - GAPI : Failed to authenticate user. 永久修复 PHP

关闭。这个问题需要debuggingdetails.它目前不接受答案。编辑问题以包含desiredbehavior,aspecificproblemorerror,andtheshortestcodenecessarytoreproducetheproblem.这将有助于其他人回答问题。关闭7年前。Improvethisquestion我正在尝试从GAPI中获取内容,它有时可以正常工作,但有时会抛出此错误:ExceptionGAPI:Failedtoauthenticateuser.Error:"https://developers.google.com/accounts/docs/A

php - ionic - 使用 PHP 的 firebase 通知不起作用

我想使用firebase将通知推送到我的Ionic2应用程序。我可以直接使用firebase控制台推送通知,但我想通过php文件发送它。当我发送时,我收到PHP的响应:{"message_id":5718309985299480645}而且手机里没有通知。我已将this.fcm.subscribeToTopic('all')放在app.component.ts构造函数中。我不知道我做错了什么..this.fcm.subscribeToTopic('all')是我应用中唯一与fcm相关的代码。我的PHP代码:'FCMPushNotifications');$target='/topics

php - Firebase PHP 数据提交 - arrayValue, mapValue

我正在尝试使用PHP和Googleapi将数据推送到firestore数据库。在我在网络上看到的文档和示例中,我可以在发送数据时使用mapValue和arrayValue。我使用的例子如下:-["orderName"=>["stringValue"=>"GbeilaAliuWahab"],"orderLocationName"=>["stringValue"=>"AccraMallLimited"],"orderTotalAmount"=>["doubleValue"=>150.5],"orderDescription"=>["stringValue"=>"LoremIpsumissi

authentication - Yii - 具有自己的 UserIdentity 组件的模块

我已经开始使用Yii框架,我有一个关于UserIdentity组件使用的新手问题。我的应用程序有一个管理模块,它将充当显示到真实站点的内容的后台。此模块有自己的管理员表tbl_admin_user。我想将模块的登录方法(检查该表而不是tbl_user)与一般站点之一分开。为此,我假设我需要为模块而不是完整的应用程序实现UserIdentity的身份验证方法,如果我错了请更正。当我覆盖该方法时,我什么也得不到。管理模块使用位于*protected\components*的UserIdentity而不是它自己的。有什么建议吗? 最佳答案

php - 在 cURL 命令中获取 Firebase 云消息传递中的未经授权错误 401

我要发送Firebase云消息传递,我遇到的问题是我收到未经授权的错误401。我从我的Firebase网站获取了安全key,然后进行了设置。设备token已经在数据库中,我从数据库中读取没有问题。到目前为止,这是我的代码:$tokens,'data'=>$message);$headers=array('Authorization:key='."MyFirebasekey",'Content-Type:application/json');echo"workwellbeforeinitcurl";$ch=curl_init();echo"initwell";curl_setopt($c