Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

how to use Apigee to protect Google cloud functions on firebase?

Not applicable

Hi,

Use Case:

I have a serverless architecture in my product. I authenticate the general user on the web using firebase authentication. Say the end user uses the product page that requires data from the backend i.e. calls an api endpoint to retrieve the data. But just before calling the end point currently I get firebase token and pass that token in the authorization header "Bearer".

In the cloud function I validate the token that the frontend is passing and I return 204 CORS and then the logic of retrieving data.

Request:

How can I use Apigee Edge to validate the firebase generated token and then allow end point call? I wish not to authenticate using apigee or generate tokens using apigee as I am already using firebase for that purpose.

Thanks in advance for your help.

Cheers,

Vinayak

0 6 1,897
6 REPLIES 6