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

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

问题描述

我们已迁移到最新的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应用程序不存在的情况,使用网络身份验证,但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实现(你可能会错误地使用他们的app来获得任何功能之间的链接能力您可能需要的应用程序)。

从而避免了要求安装了e app。

Thereby avoiding the REQUIREMENT to have the app installed.

为此研究我发现:


移动与服务器边访问令牌

目前,没有可用于交换它们的机制。如果
需要可在移动和服务器端
环境中使用的令牌,则需要在iOS环境中实施传统的OAuth 2.0
解决方案以获取可能的令牌
在两种情况下都有杠杆作用。

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 App的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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