【问题标题】:auth_info in janrain authenticationjanrain 身份验证中的 auth_info
【发布时间】:2014-04-29 08:49:30
【问题描述】:

我正在尝试使用 janrain 来处理我的 Android 应用程序中的许多提供商的身份验证。成功登录提供商后,我从 janrain 获取 auth_info 数据。

我正在尝试了解其中的详细信息,但在文档中找不到任何内容。具体来说,我对 "device_token""token" 变量感兴趣。

提供来自两个提供商的摘录:

Google+ 提供商:

{device_token=fb95763f605f13f8d71cd5d18ec9a5275xxxxxx, token=04c858ede0e14035a4d17c3ccab987b91xxxxxx, stat=ok, profile={providerSpecifier=googleplus, googleUserId=xxxxxxxx . . . }

Facebook 提供商:

{device_token=986e9c441cfec5093f608a5c7a672981cxxxxxx, token=748b628d2e82d593fdc271793e9672c9axxxxxx, stat=ok, profile={providerSpecifier=facebook, providerName=Facebook . . . }

谁能解释我为什么需要这两个令牌?

【问题讨论】:

    标签: android authentication janrain


    【解决方案1】:

    “device_token” 用于社交分享。

    “token” 是与 auth_info 端点一起使用的一次性使用令牌。

    因此,如果您没有社交共享,那么您就不需要使用“device_token”。

    这里是 Janrain Mobile SDK repo,以及文档:https://github.com/janrain/jump.android/blob/master/Docs/Jump_Integration_Guide.md

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-09
      • 2015-02-02
      • 2018-02-24
      • 2015-04-29
      • 2010-10-05
      • 2013-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多