简体   繁体   English

Firebase 云功能 - 自动认证设置

[英]Firebase cloud functions - automatic authentication setup

is it possible to create some kind of automatic preset thingy, where every cloud function that has an http trigger has authentication set to "Allow unauthenticated"?是否可以创建某种自动预设的东西,其中每个具有 http 触发器的云 function 都将身份验证设置为“允许未经身份验证”? I want to do it without having to manually set it via the gcloud console/listing out all the functions via gcloud cli.我想这样做,而不必通过 gcloud 控制台手动设置它/通过 gcloud cli 列出所有功能。 Thx谢谢

No, you have to choose this setting for every function you create.不,您必须为您创建的每个 function 选择此设置。 You could make it easier for yourself by writing a shell script that sets this access when you want to create or deploy the function.当您想要创建或部署 function 时,您可以编写一个 shell 脚本来设置此访问权限,从而让您自己更轻松。

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

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