【发布时间】:2016-02-19 16:09:16
【问题描述】:
我目前正在关注来自 Firebase 的 Email & Password Authentication tutorial。
这是使用电子邮件和密码登录的基本代码:
var ref = new Firebase("https://<YOUR-FIREBASE-APP>.firebaseio.com");
ref.authWithPassword({
email : "bobtony@firebase.com",
password : "correcthorsebatterystaple"
}, function(error, authData) {
if (error) {
console.log("Login Failed!", error);
} else {
console.log("Authenticated successfully with payload:", authData);
}
});
对于我在网站上浏览的每个页面,我是否需要使用电子邮件和密码凭据重新进行身份验证才能访问数据库?
如果是这样,我如何通过网页传递email 和password 而不会使密码容易暴露。
我对安全非常陌生,不想遇到任何安全问题或数据泄漏,因此我依赖第三方服务。
【问题讨论】:
标签: javascript html security authentication firebase