firebase / firebase/functions-samples

[DOCS] Firebase idToken and Cloud Function Authorization

Open
#903 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.2k
Forks
3.8k
Avg merge
3d 23h
Merged PRs (30d)
1

Description

### Firebase idToken and Cloud Function Authorization

I was looking to this documentation:
- https://github.com/firebase/functions-samples/tree/main/authenticated-json-api
- https://github.com/firebase/functions-samples/tree/main/authorized-https-endpoint

Both documentation are not clear about the following cenario.

I have a user authenticated on firebase and a Firebase IdToken.

When I create a Cloud Function and deploy it to GCP without the allUsers invoker role I always get a 403 response.

It looks like the Firebase idToken is not recognized by GCP Cloud Function IAM handler.

Is there a missing role configuration? Or should I do some other configuration?

Note: I want to avoid using the allUsers invoke rule

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.