如何使Google端点API使用Firebase身份验证?

时间:2018-06-19 23:48:11

标签: firebase firebase-authentication google-cloud-endpoints endpoints-proto-datastore

我已经在令人敬畏的Endpoints-proto-datastore库之上建立了一个非常简单的REST API,该库依赖于Google Cloud Built-in第三方库中包含的端点v1.0.0。

此API将数据提供给Angular 6应用。

我还设置了Firebase / Angularfire身份验证。现在,当我尝试按照docs中的示例使用Firebase对API调用进行身份验证时,由于端点v1.0.0中不提供该对象,因此我无法使用所需的Firebase“ issuer”对象。

似乎解决方案是将端点升级到v4.3.0(到目前为止,我也尝试过v2,v3)。

运行应用程序时,API不再接受对/ _ah / spi的调用:

ValueError: Invalid request path: /_ah/spi/BackendService.getApiConfigs

知道我在做什么错吗?

1 个答案:

答案 0 :(得分:0)

migration docs所示,在新的Endpoints版本中,您在/_ah/api而不是/_ah/spi上接受请求

相关问题