制作一个网络应用程序,对我的 Google Drive 上的某些(表格)文件进行更改(即用户将像我一样使用该应用程序),但我想将网络应用程序访问权限限制为仅某些用户。部署应用程序时,我只能选择将其设为私有或公开。一种解决方案是使用会话类来查看是否有正确的用户登录。
function onAppBegin(){
if (Session.getActiveUser().getEmail() != "correctappuser@gmail.com") return null;
accessGranted();
}
Run Code Online (Sandbox Code Playgroud)
但是,我担心这种粗略的方法是否真的安全且不可破解?
我正在为haxe 3移植一个扩展(HypTwitter)...我该替换什么
haxe.Int32.and(x,haxe.Int32.ofInt(0xFF))
Run Code Online (Sandbox Code Playgroud)
有效的Haxe 3?