简体   繁体   English

即使使用Facebook Connect登录,也强制用户输入登录

[英]Force user to enter login even if logged in with Facebook Connect

I have an implementation of Faceebook connect and I have noticed that if you are already logged in to facebook and hit connect, you wont be prompted for your login credentials (because it takes current session data). 我有一个Faceebook连接的实现,我注意到如果你已经登录到Facebook并点击连接,你将不会被提示你的登录凭证(因为它需要当前的会话数据)。

Is there anyway to make Facebook connect not use the currently logged in user and force each connect to enter their login/pw? 反正有没有让Facebook连接不使用当前登录的用户并强制每个连接输入他们的登录/ pw?

实际上我相信如果你已经安装了facebook应用程序,它会绕过第二个窗口。

This is possible using re-authentication. 这可以使用重新身份验证。 Quoting: 引用:

In apps where security is very important, you may want to double-check someone's identity - perhaps before they make a purchase within the app, or use it to access some sensitive personal data. 在安全性非常重要的应用中,您可能需要仔细检查某人的身份 - 可能是在他们在应用内购买之前,或者使用它来访问某些敏感的个人数据。

To prevent situations where a user could leave a device logged in or man-in-the-middle hijacking of the user session, re-authentication forces a person to re-enter their Facebook password before they can continue to use your app. 为了防止用户可能离开设备登录或中间人劫持用户会话,重新身份验证会强制用户重新输入他们的Facebook密码,然后才能继续使用您的应用。

For more information, see: 有关更多信息,请参阅:

https://developers.facebook.com/docs/howtos/login/client-side-re-auth/ https://developers.facebook.com/docs/howtos/login/client-side-re-auth/

Go to facebook App settings. 转到Facebook应用程序设置。 under Advance tab look for "Force Web OAuth Reauthentication" make that YES. 在“高级”选项卡下,查找“强制Web OAuth重新认证”,使其成为YES。 and save it. 并保存。

From now on your login will ask for user password every time even if facebook browser session is present. 从现在开始,即使Facebook浏览器会话存在,您的登录也会每次都要求输入用户密码。

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

相关问题 即使用户已登录,如何强制用户重新输入Facebook密码 - How to force the user to re-enter facebook password even though he/she is logged in 即使使用正确的测试用户登录,也无法使用 Facebook 登录 - Login with Facebook is not working even with correct test user logged in 用于 Facebook 好友邀请的 GameRequestDialog 始终要求登录,即使用户已经登录 - GameRequestDialog for Facebook friend invitation always asks for login, even if user was already logged in iOS Facebook SDK-强制用户输入凭据 - iOS Facebook SDK - Force user to enter credentials 点击 Facebook 登录按钮后重定向,即使已经登录 Facebook - Redirect after clicking on the Facebook login button, even if already logged in Facebook Facebook API:检查用户是否在登录时登录 - Facebook API: checking if user is logged in on connect Facebook:强制用户使用FBML登录/安装应用程序 - Facebook: force user to login / install application with FBML Facebook 评论 - 强制用户登录网站? - Facebook Comments - Force user to login to site? 通过Facebook SDK - Android登录后,Facebook用户将保持登录状态 - Facebook user is kept logged on after login via Facebook SDK - Android 即使他们没有登录,用户也应该查看我的Facebook Wall页面? - User should view my facebook Wall page, even though they are not logged in?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM