Firebase工具:作为服务帐户登录 [英] Firebase tools: login as service account

查看:183
本文介绍了Firebase工具:作为服务帐户登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到方法如何代表服务帐户部署Firebase项目(功能).

文档页面上什么也没说,而且我在他们的错误跟踪器.

如上所述,我运行firebase login:ci命令,但随后我需要登录自己-我想以服务帐户身份登录.

可以使用gcloud工具使用此功能,但是,如文档中所述

使用Firebase SDK for Cloud Functions编写的Cloud Functions无法使用gcloud命令行工具进行部署,反之亦然.

解决方案

firebaser此处

自Firebase CLI/tools的版本7.1 可以通过服务帐户进行身份验证.

也可以在此处查看迈克尔的答案:使用gcloud服务帐户登录到Firebase a>

上一个答案:

要使用Firebase CLI/工具,您需要以实际用户身份登录.无法将Firebase CLI作为服务帐户运行.

虽然它被认为是有效且有趣的功能请求! 此PR 中已完成了一些可能有助于实现此功能的工作. .像往常一样:没有承诺是否/何时/如何降落.请随时注意发行说明,以获取最新更新.

I cannot find way how to deploy firebase project (functions) on behalf of service account.

Nothing is said both on documentation page and also I found nothing related in their bug tracker.

As described, I run firebase login:ci command but then I need to login myself - and I want login as service account.

Such feature is available using gcloud tool, but, as stated in docs,

Cloud Functions written using the Firebase SDK for Cloud Functions can't be deployed using the gcloud command-line tool, and vice-versa.

解决方案

firebaser here

Since version 7.1 of the Firebase CLI/tools it is possible to authenticate with a service account.

Also see Michael's answer here: Login to firebase using gcloud service account

Previous answer:

To use the Firebase CLI/tools you need to be signed in as an actual user. There is no way to run the Firebase CLI as a service account.

It's been noted as a valid and interesting feature request though! Some work that might help towards this feature is being done in this PR. As usual: no commits on if/when/how this may land. Keep an eye on the release notes for the latest updates.

这篇关于Firebase工具:作为服务帐户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆