简体   繁体   English

Javascript登录浏览器弹出窗口

[英]Javascript Login Browser PopUp

If I have a different app on x-number of subdomains, it seems easiest to just have login be through the browser/javascript popup. 如果我在x个子域上有一个不同的应用程序,则似乎最简单的方法是通过浏览器/ javascript弹出窗口进行登录。 Is this safe? 这样安全吗? Is it better to do this than server-side authentication? 这样做比服务器端身份验证更好吗? Do you have a little pastie on how to make the authentication popup and pass the info to say Rails? 您是否对如何进行身份验证弹出窗口以及如何将信息传递给Rails感兴趣?

最好将服务器端身份验证用于诸如托管之类的事情,安全性要复杂得多,并且您可以实现更多的制衡。

I would definitely use server side authentication. 我肯定会使用服务器端身份验证。 There's more flexibility, and its more secure. 灵活性更高,更安全。

I understand the desire to make things easier for the user, but security is one area where safe is better than easy. 我了解使用户更轻松的愿望,但是安全是安全胜于轻松的一个领域。

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

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