Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP脚本和firestore之间的身份验证_Php_Firebase_Google Cloud Firestore_Firebase Authentication - Fatal编程技术网

PHP脚本和firestore之间的身份验证

PHP脚本和firestore之间的身份验证,php,firebase,google-cloud-firestore,firebase-authentication,Php,Firebase,Google Cloud Firestore,Firebase Authentication,我有一个运行PHP的后端服务和Firestore中的数据库。PHP上的脚本由另一个服务的回调调用。这些服务或多或少地处理数据并将其写入我的Firestore数据库。在测试期间,我将规则设置为public,但我想让它更安全。但是,我不知道如何保护PHP脚本和FireStore之间的通信。我想有一种方法可以绑定到IP上,但还有其他方法吗?所有的调用都可以用秘密的salt和hash进行保护,但我想我希望确保只有我的脚本页面才允许进行调用 最好的方法是什么?如今,连接是通过简单的firebase配置实现

我有一个运行PHP的后端服务和Firestore中的数据库。PHP上的脚本由另一个服务的回调调用。这些服务或多或少地处理数据并将其写入我的Firestore数据库。在测试期间,我将规则设置为public,但我想让它更安全。但是,我不知道如何保护PHP脚本和FireStore之间的通信。我想有一种方法可以绑定到IP上,但还有其他方法吗?所有的调用都可以用秘密的salt和hash进行保护,但我想我希望确保只有我的脚本页面才允许进行调用


最好的方法是什么?如今,连接是通过简单的firebase配置实现的。

谷歌提供了一个PHP库,可以从PHP后端安全地与Firestore进行对话