Linkedin iOS 身份验证需要启动 Linkedin 应用程序 [英] Linkedin iOS Authentication requires launching of the Linkedin app

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

问题描述

我在将 LinkedIn sdk 与我的 iOS 应用程序集成时遇到问题.似乎身份验证过程要求我下载 LinkedIn 应用程序以连接 LinkedIn.有没有一种无需下载 LinkedIn 应用程序即可使用 sdk 的方法?苹果出于这个原因拒绝了该应用程序.我非常感谢任何解决此问题的提示.提前致谢

I have a problem integrating LinkedIn sdk with my iOS app. It seems that the authentication process requires that I download the LinkedIn app to connect with LinkedIn. Is there a way to use the sdk without having to download the LinkedIn app? Apple rejects the app for that reason. I'd greatly appreciate any hints to work around this issue. Thanks in advance

推荐答案

此页面上的其他答案日期为 2015 年 11 月 6 日,每个答案都是指 iOS9 之前的进程及其 最新 SDK.

The other answers on this page that are dated the 6th of November 2015, each refer to processes prior to iOS9 and their latest SDKs.

对于他们的最新版本,必须安装移动应用程序才能使单点登录过程正常工作.工作流程是:

With their latest version, it is a "requirement" that the mobile application be installed for the single sign on process to work. Workflow being:

  • 用户在您的应用中指示登录过程
  • 您的应用使用应用内链接的 SSO 流程
  • 注册完成后,您会收到一个回调,让您从上次中断的地方继续.

就 iOS 应用程序而言,这是使用 SSO 的必需"方式.但是,在应用程序的移动版本和非移动版本之间共享授权令牌有一个轻微的解决方法.

In as far as the iOS application is concerned, this is the "required" way to utilise SSO. However, there is a slight workaround in sharing the authorisation token between the mobile and non-mobile versions of the app.

我在回答以下问题时分享了这一点:
https://stackoverflow.com/a/34312931/1804181
https://stackoverflow.com/a/34451266/1804181
并且第一个答案的OP已经成功实现了这个解决方案.

I have shared this in answers to:
https://stackoverflow.com/a/34312931/1804181 and
https://stackoverflow.com/a/34451266/1804181
and the OP of the first answer has successfully implemented this solution.

简单地说:

测试是否存在链接的应用:

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

从而避免了安装应用程序的要求,但如果安装了就使用它.

Thereby avoiding the REQUIREMENT to have the app installed, but utilising it if it is.

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

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