【发布时间】:2019-11-24 19:04:27
【问题描述】:
使用 python 访问服务器上的 firestore 管理员:
import firebase_admin
from firebase_admin import credentials, firestore
cred = credentials.Certificate('myfile.json')
myfile.json 已添加到 git 存储库中,所以现在我想知道是否有办法撤销它并创建一个新的?
按照 firebase 教程,它应该是一个服务帐户,但是在 google cloud 上没有旧的服务帐户可以撤销。
myfile.json 是几个月前创建的,因此无法知道它是如何创建的(因为在使用 firebase/google cloud 做任何事情时,您必须跳到各地的多个指南,突然知道所有任何事情都可以取得任何进展)。
编辑: 我没有找到服务帐户的原因是因为 google cloud 选择了一个与 firebase 项目名称相似的项目。
【问题讨论】:
标签: python firebase google-cloud-platform service-accounts google-cloud-iam