IOS单点登录认证需要LinkedIn App [英] Single Sign On authentication in IOS requires LinkedIn App

查看:24
本文介绍了IOS单点登录认证需要LinkedIn App的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已迁移到仅支持单点登录 (SSO) 身份验证的最新 LinkedIn IOS SDK,并结合官方 LinkedIn 移动应用程序.我们的应用程序在此方面运行良好,但 Apple 不会批准我们的最新版本,因为它需要安装 LinkedIn 应用程序才能进行身份验证.

We've migrated to the latest LinkedIn IOS SDK which only supports single sign-on (SSO) authentication, in conjunction with the official LinkedIn mobile application. Our app works really well with this, however Apple will not approve our latest version, because it requires the LinkedIn app to be installed for the authentication to work.

我们需要一个解决方案来处理 LinkedIn 应用程序不存在时的场景,以使用 Web 身份验证,但是 LinkedIn 非常具体说明启用 Mobile SDK 的应用程序需要在设备上安装官方 LinkedIn iOS 应用程序才能正常运行" https://developer.linkedin.com/docs/ios-sdk - 手机SDK 于 7 月发布,因此假设我们的应用程序被 Apple 批准拒绝的不止我们一个.

We need a solution which handles the scenario when the LinkedIn app is not present, to use web authentication, however LinkedIn are very specific stating Mobile SDK-enabled applications require the official LinkedIn iOS app to be installed on the device to function properly" https://developer.linkedin.com/docs/ios-sdk - The Mobile SDK was released in July, so presume we are not alone in having our app rejected by Apple approvals.

推荐答案

您能否测试链接的应用程序是否存在:

Could you test for the presence of the linked-in app:

  • 如果不存在:直接通过您的应用实现 OAuth2
  • 如果存在:使用它或您的 OAuth2 实现(您可能会错误地使用他们的应用来实现您可能需要的应用的任何功能之间的链接能力).

从而避免安装应用程序的要求.

Thereby avoiding the REQUIREMENT to have the app installed.

对此我进行了研究:

移动端访问令牌与服务器端访问令牌

目前,没有可用的机制来交换它们.如果你需要可在移动端和服务器端使用的令牌环境,您将需要实施传统的 OAuth 2.0在您的 iOS 环境中获取令牌的解决方案在这两种情况下都可以利用.

Presently, there is no mechanism available to exchange them. If you require tokens that can be used in both the mobile and server-side environment, you will need to implement a traditional OAuth 2.0 solution within your iOS environment to acquire tokens that can be leveraged in both situations.

来自:https://developer.linkedin.com/docs/ios-sdk-认证

这表明支持远离应用程序的身份验证.

which suggests that authentication away from the app is supported.

这篇关于IOS单点登录认证需要LinkedIn App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆