[FR] Add support for cross-project server message sending
维护者通常 1 天内回复
@chong-shao 已经在做这个了。
开始于 2025年11月21日。
评估
这个 Issue 还没有评估数据。
描述
Is your feature request related to a problem? Please describe.
We were using the firebase admin SDK and a special service account with key resident in the same project as the apps (the servers are in different projects).
We wanted to remove usage of this separate service account and use the service account bound to the workload instead which is resident in a different project
This is possible from the API perspective as long as the SA has Firebase Cloud Messaging API Admin role in the project that hosts the firebase apps (as mentioned here: https://firebase.google.com/docs/cloud-messaging/send/v1-api#authorize-cross-project)
This was not possible with the firebase admin SDK and so we had to do it directly by calling the FCM API via an http client (Axios in Nodejs) after fetching the Oauth2 token for the service account from Google (as described in the link above)
It would be better if this was supported natively in the firebase admin SDK (you could specify sending to a different project than the one in the SA credentials)
Describe the solution you'd like
Firebase admin SDK supports working with an SA from a different project than the firebase apps (provided the SA has the necessary Firebase Cloud Messaging API Admin role in the project that hosts the firebase app)
Describe alternatives you've considered
The less appealing alternative of fetching the SA Oauth2 token and calling the API directly
Additional context
Add any other context, code samples or screenshots about the feature request here.
- 主要语言
- TypeScript
- 星标
- 1.7k
- 派生
- 419
- 平均合并
- 4 天 20 小时
- 30 天内合并 PR
- 16
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/firebase-admin-node 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
firebase/firebase-admin-node#3234 ·
维护者通常 1 天内回复
-
[email protected] stable dependency tree fails npm audit via Storage uuid and Firestore google-gax可能已有人在做 @lahirumaramba 于 18 天前认领。 未关闭
firebase/firebase-admin-node#3221 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
api: messaging
难度 3/5 1-2 天 新手友好度 70/100
firebase/firebase-admin-node#3215 ·
维护者通常 1 天内回复
-
api: messaging
难度 5/5 一周以上 新手友好度 28/100
firebase/firebase-admin-node#3214 ·
维护者通常 1 天内回复
-
[Firestore] Re-export functions from '@google-cloud/firestore/pipelines'可能重新可做 @jonathanedey 于 88 天前认领,目前没有进行中的 PR。 未关闭api: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 firebase/firebase-admin-node 的全部 Issue
相似的 Issue
-
resources
难度 2/5 1-3 小时 新手友好度 72/100
railmapgen/rmg-palette#2445 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
danielmiessler/LifeOS#2242 ·
维护者通常 5 天内回复
-
good first issue hacktoberfest help wanted translation
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
callstackincubator/appduct#129 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100