douweng5420 2019-02-19 12:20
浏览 54

有没有办法以编程方式撤销在firebase存储上从私人网址生成的公共下载网址?

Recently I am developing an app which connects to firebase and upload important documents to firebase storage.

There are users who will view uploaded documents, so I generated download URL after upload document and stored download url into firebase database so that the app will get download url and use it.

Btw, once generated download url, it is public so anyone can use the link to view the uploaded document on firebase storage.

So I decided to store private url of document into firebase database and then once valid user wants to view the document, the app will generate download url from private url and then use the link to show to the user.

And then right after viewing, I want to revoke download url of the document programmatically on the app.

I see I can manually revoke download url on firebase storage on browser, but I want to do it programmatically on my app.

For security, this is very important.

Can anyone help me?

  • 写回答

1条回答 默认 最新

  • dongzituo5530 2019-02-19 14:17
    关注

    There currently is no public API to revoke download URLs from Cloud Storage for Firebase. The only way to revoke download URLs is through the Firebase console.

    I recommend that you file a feature request.

    Related:

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?