English 中文(简体)
书店 在服务器(Android和Ios)登记或登录
原标题:Facebook Single Sign On to register or log-in in server (Android and Ios)

我们正在实施一项项目,使用户站出来并从服务器获取一些信息。 假设情况是,用户可以人工生成账户/记录(发送电子邮件和密码),并使用SSO制作面纱。 我主要执行安康,但我的问题很普遍。

  1. 我要说的是,我有一个叫SSO的纽州,这促使用户提供他的全权证书。 因此,为了说明我应向服务器寄送什么? 查阅用户的“FB”电子邮件,并将我收到的“Lovel Token”作为密码? 每一个财务账户是否具有独一无二和永久的性质,即我每次使用同样的财务、财务、财务、财务和体制事项证书时,我能否获得同样的机会?

  2. 在服务器方面是否还需要做任何额外的工作? 或者服务器能够处理使用其财务账户的用户,就像其处理其他账户一样?

每一项澄清都将真正有益。 事先感谢你!

最佳回答

你们是否使用Facebook SDK? 如果是的话,人工标识(使用电子邮件/密码)和SSO(通过书目信息系统)非常相似,特别是在象征性处理方面。

例如,如果你在SDK(Sdkexamplessimplesrccomfacebookandroid)中查到这个例子,你就会看到,该法典与以下(三个档案之间)一样。

private static final String TOKEN = "access_token";
private static final String EXPIRES = "expires_in";
private static final String KEY = "facebook-session";
Facebook session = new Facebook(APP_ID);
SharedPreferences savedSession = context.getSharedPreferences(KEY, Context.MODE_PRIVATE);
session.setAccessToken(savedSession.getString(TOKEN, null));
session.setAccessExpires(savedSession.getLong(EXPIRES, 0));
if (session.isSessionValid()) {
    session.authorize(mActivity, mPermissions, new LoginDialogListener());
}

因此,在每一成功标识之后(亦如上)必须节省会议费用,但人工和SSO标志(取决于活动参数)的象征性处理和标识(<代码>授权(<>)相同。

问题回答

标注有一个过期的安装时间,我猜测,以数据字块生成用户账户的容易方式将发送你,并将标注和到期日作为用户特征储存。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签