简体   繁体   English

Facebook身份验证SSO与WebView

[英]Facebook authentication SSO vs WebView

I'm making an Android app with the Facebook SDK. 我正在使用Facebook SDK开发一个Android应用。 I have the following questions regarding authentication. 关于身份验证,我有以下问题。

According to the documentation of FB, if we installed the native FB app for Android and have enabled the Facebook login page of the application (FB developers panel), then our authentication uses the native FB app to authenticate and the process will be an SSO. 根据FB的文档,如果我们为Android安装了本机FB应用程序并启用了该应用程序的Facebook登录页面(FB开发者面板),则我们的身份验证将使用本机FB应用程序进行身份验证,该过程将是SSO。

What if I use a WebView to authenticate Dialog? 如果我使用WebView验证Dialog怎么办? Not SSO? 不是SSO? Is It Just OAuth? 只是OAuth吗? What difference does it make? 有什么区别?

In tests I'm doing in Eclipse + ADT, not all emulators, even with the native FB app for Android, I launch this application for login (only in certain occasions, with the same source code). 在我使用Eclipse + ADT进行的测试中,即使使用Android的本机FB应用程序,也不是所有的仿真器,我都会启动该应用程序进行登录(仅在某些情况下,使用相同的源代码)。 Would you happened to anyone? 你会碰到任何人吗?

thanks 谢谢

The webview dialog will do SSO (using OAuth), but the user will have to type in their username and password in the dialog. Webview对话框将执行SSO(使用OAuth),但用户将必须在对话框中输入其用户名和密码。 If you have the native app installed, it will ask the user to login with the Facebook app's login screen if they aren't already logged in. If the user is logged in on the Facebook app, they will not have to login again. 如果您安装了本机应用程序,它将询问用户是否尚未登录Facebook应用程序的登录屏幕。如果用户已登录Facebook应用程序,则无需再次登录。

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

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