用于进行服务器端REST API调用的LinkedIn移动访问令牌 [英] LinkedIn mobile access token for making server side REST API calls

查看:92
本文介绍了用于进行服务器端REST API调用的LinkedIn移动访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据LinkedIn文档,我发现我们无法使用移动访问令牌进行LinkedIn提供的REST API调用。我有一个用例,在我的移动应用程序中,我使用LinkedIn的移动SDK登录到linkedin,我需要在后端获取某些数据,如登录用户的连接等。理想情况下,这应该在后端而不是移动设备上进行,因为我不希望从应用程序到我们的服务器进行太多调用。有什么工作要做吗?

As per LinkedIn documentation I see that we cannot use the mobile access token to make REST API calls which LinkedIn provides. I have a use case, where, in my mobile app, I use LinkedIn's mobile SDK for logging in to linkedin and I need to fetch certain data like logged in user's connections etc on the backend. This should ideally be done on backend instead of mobile because I do not want too many calls going from app to our servers. Is there any work around to do this?

推荐答案

使用Mobile SDK,目前还没有解决这个问题的方法。如果您需要后端呼叫功能,最好的办法是使用现有的auth库在移动环境中实现OAuth 2.0,而不是使用官方SDK。这样,您从流程中获得的访问令牌在任何一种情况下都可以使用。

Using the Mobile SDK, there's really no way around this at the moment. If you require back-end call capability, your best bet is to use an existing auth library that implements OAuth 2.0 in the mobile environment rather than using the official SDK. That way, the access tokens you get back from the process are usable in either situation.

这篇关于用于进行服务器端REST API调用的LinkedIn移动访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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