Facebook Connect 和 HTTP 基本身份验证
我正在开发一个使用 Facebook Connect 进行用户登录/创建的网站。我有一个用于质量检查的开发服务器,我希望它受到密码保护。我们想使用 HTTP 基本身份验证,但这似乎破坏了 Facebook Connect(它陷入了循环)。有谁知道为什么会发生这种情况?
我相信基本身份验证是在浏览器的基础上完成的,Facebook 和我们网站之间的所有通信都是在用户的浏览器中完成的。可能是什么问题?
I am working on a site that uses Facebook Connect for user login/creation. I have a development server which is used for QA, and I'd like it to be password protected. We wanted to use HTTP basic authentication, but that seems to break Facebook Connect (it falls in a loop). Does anybody know why that may be happening?
I believe that basic authentication is done on a browser basis, and all the communication between Facebook and our site is done in the browser of the user. What could be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Facebook Connect 在 iFrame hack 中使用 iFrame 来克服跨域边界限制(请参阅 http://wiki。 Developers.facebook.com/index.php/Cross_Domain_Communication 了解详细信息)。我的猜测是,当 Facebook 重定向到回调页面 (xd_receiver.htm) 时,它会失败,因为稍后需要基本身份验证。
Facebook Connect uses iFrame inside iFrame hack to overcome cross domain boundaries limitation (see http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication for details). My guess is that when Facebook redirects to the callback page (xd_receiver.htm) it fails because later requires basic authentication.
需要有关“陷入循环”的更多信息。但根据你的问题,据我所知,facebook connect 将在创建帐户时创建一个随机密码,如果他们通过基本身份验证登录,则需要更改密码以匹配(http://www.boonex.com/unity/forums/topic/facebook-连接错误-.htm)
但您没有指定这是否是您使用 FBconnect 的方式。
您是否需要基本身份验证才能到达 FBconnect 帐户链接/创建点?
或者您是否使用 FBconnect 创建基本身份验证的登录名?
您如何要求基本身份验证?服务器类型?
不需要基本身份验证就可以一切正常吗?
More information needed on the "falls in a loop". But based on your question, from what I've read is that facebook connect will create a random password on account creation, and if they are logging in over basic auth, it will need to be changed to match up(http://www.boonex.com/unity/forums/topic/facebook-connect-error-.htm)
But you don't specify if that's the way you are using FBconnect.
Are you requiring basic auth to get to the point of FBconnect account link/create?
Or are you using FBconnect to create the login for the basic auth?
How are you requiring basic auth? Server type?
Does everything work without requiring basic auth?