IOS 中的单点登录身份验证需要 LinkedIn 应用程序 [英] Single Sign On authentication in IOS requires LinkedIn App

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

问题描述

我们已迁移到最新的 LinkedIn IOS SDK,该 SDK 仅支持单点登录 (SSO) 身份验证,并与官方的 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 非常具体地说明支持移动 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.

我确实找到了这个研究:

Researching for this I did find:

移动与服务器端访问令牌

目前,没有可用于交换它们的机制.如果你需要可以在移动端和服务器端使用的令牌环境,您将需要实施传统的 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-auth

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

which suggests that authentication away from the app is supported.

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

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