[英]How can I make google endpoints API to use Firebase authentication?
I've set up a very simple REST API on top of the awesome endpoints-proto-datastore library, which relies on endpoints v1.0.0 included in Google Cloud Built-in Third-party Libraries. 我在超赞的protocols-proto-datastore库的顶部建立了一个非常简单的REST API,该库依赖于Google Cloud Built-in第三方库中包含的端点v1.0.0。
This API serves data to an Angular 6 app. 该API将数据提供给Angular 6应用。
I've set up Firebase/Angularfire authentication as well. 我还设置了Firebase / Angularfire身份验证。 Now, when I try to authenticate API calls using Firebase following the example in the docs , I can't use the Firebase "issuer" object required as it is not available in endpoints v1.0.0.
现在,当我尝试按照docs中的示例使用Firebase对API调用进行身份验证时,由于端点v1.0.0中不提供该对象,因此我无法使用所需的Firebase“ issuer”对象。
Seems the solution is to upgrade endpoints, which I do to v4.3.0 (latest as of today, I've also tried v2, v3). 似乎解决方案是将端点升级到v4.3.0(到目前为止,我也尝试过v2,v3)。
When I run my app, the API does not accept calls to /_ah/spi anymore: 当我运行我的应用程序时,API不再接受对/ _ah / spi的调用:
ValueError: Invalid request path: /_ah/spi/BackendService.getApiConfigs
Any idea what am I doing wrong? 知道我在做什么错吗?
如迁移文档所示,在新的Endpoints版本中,您在/_ah/api
而不是/_ah/spi
上接受请求
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.