Single Sign On authentication in IOS requires LinkedIn App

五迷三道 提交于 2019-11-29 15:17:56

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

  • if it is not there: implement OAuth2 directly through your app
  • if it is there: use it or your OAuth2 implementation (which you'd probably err on the side of using their app for the link-ability between any features of the app you may need in yours).

Thereby avoiding the REQUIREMENT to have the app installed.

Researching for this I did find:

Mobile vs server-side access tokens

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.

from: https://developer.linkedin.com/docs/ios-sdk-auth

which suggests that authentication away from the app is supported.

Pleased to confirm that the solution kindly suggested by Madivad of using the new LinkedIn SDK if the LinkedIn app is installed and when it's not reverting to traditional OAuth 2.0 works fine. Apple are also back on our Christmas card list as they approved this latest version today within 40 minutes of submission:) Thanks Madivad for helping out with this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!