简体   繁体   English

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

[英]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.

相关问题 如何将firebase身份验证与Google App引擎端点集成 - How to integrate firebase authentication with google app engine endpoints 如何使用Postman通过Firebase身份验证测试Google App Engine API? - How to use Postman to test a Google App Engine API with Firebase authentication? 是否可以使用Firebase Auth来保护我的Google Cloud Endpoints API? - Is it possible to use Firebase Auth to secure my Google Cloud Endpoints API? 如何将 Firebase 身份验证添加到 Laravel api 路由 - How can i add firebase authentication to laravel api routes 我可以在 DatabaseReferences 中使用 Firebase 用户身份验证吗? - Can I use Firebase user authentication in DatabaseReferences? Google端点框架和Firebase身份验证问题(在配置中未定义身份验证提供程序) - Google endpoints framework and firebase authentication issue (No auth providers are defined in the config) 使用Google Coud Endpoints + Firebase身份验证时,“没有身份验证令牌附加到请求中” - “No auth token is attached to the request” with Google Coud Endpoints + Firebase authentication 我如何在firebase.google.com中测试php api - how can i test php api in firebase.google.com 如何轻松地在 Firebase 函数模拟器端点和我的 delpoyment 函数端点之间切换? - How can I easily switch between Firebase function emulator endpoints and my delpoyment function endpoints? 如何在Google端点中验证Firebase令牌? - How to verify firebase token in google endpoints?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM