简体   繁体   English

firebase 会话 cookie 和存储规则

[英]firebase sessions cookies and storage rules

I've noticed on the docs for firebase session cookies that it states:我在firebase 会话 cookie的文档中注意到它指出:

For security reasons, Firebase session cookies cannot be used with other Firebase services due to their custom validity period, which can be set to the maximum duration of 2 weeks.出于安全原因,Firebase 会话 cookie 不能与其他 Firebase 服务一起使用,因为它们的自定义有效期可以设置为最长 2 周。 All applications using server side cookies are expected to enforce permissions checks after verifying these cookies server side.所有使用服务器端 cookie 的应用程序都应在验证这些 cookie 服务器端后强制执行权限检查。

Does this mean that I can't use the auth claims to specify security rules for cloud storage uploads?这是否意味着我不能使用 auth 声明来指定云存储上传的安全规则?

You can use auth claims in Cloud Storage security rules.您可以在 Cloud Storage 安全规则中使用授权声明。 Read the documentation here . 阅读此处的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM