[英]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.