firebasefirebase-authenticationgoogle-cloud-endpointsendpoints-proto-datastore

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.

This API serves data to an Angular 6 app.

I've set up Firebase/Angularfire authentication as well. 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.

Seems the solution is to upgrade endpoints, which I do to v4.3.0 (latest as of today, I've also tried v2, v3).

When I run my app, the API does not accept calls to /_ah/spi anymore:

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

Any idea what am I doing wrong?


Solution

  • As shown in the migration docs, in the new Endpoints version, you accept requests on /_ah/api instead of /_ah/spi