Firebase撤销下载URL上的令牌 [英] Firebase revoke token on download url

查看:48
本文介绍了Firebase撤销下载URL上的令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Firebase控制台上简单地获取"图像时,它会自动为我创建一个下载网址,例如 > https://firebasestorage.googleapis.com/XXX /YYY/XXX/name.jpg?alt=media&token= .

When I simple "took" a images on firebase console it create me automatically a download url like https://firebasestorage.googleapis.com/XXX/YYY/XXX/name.jpg?alt=media&token=.

我想对文件进行超级安全保护,如何删除此下载URL或撤消此令牌?

I wanna have my file super-secured, how I can remove this download url or revoke this token?

推荐答案

您无法限制该url(甚至不通过安全规则).它始终是公开的,但请注意,这是不可能的.通过Firebase控制台还有一个吊销选项,以防URL泄漏.

There's no way you can restrict that url (not even through security rules). It is always public but note that it is unguessable. There is also a revoke option through Firebase console just in case the URL leaks.

这篇关于Firebase撤销下载URL上的令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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