开发者

Which data do I have to store in DB once I get Token data in Linkedin API?

I assume workflow for OAuth is very similar in various sites. (twitter, linkedin) I can successfully get requestToken, accessToken. Is it okay, if I just store Acc开发者_开发技巧esstoken and use it later???


Yes, this is the generally accepted practice. I use this workflow on a few sites and based on the posts on the LinkedIn Developer's site, it looks like the method that most people are using.

The only trick is to cover yourself in the case that the user rejects your application's access rights; filter all responses from the LinkedIn API looking for an error indicating that the access token is no longer valid (you should be doing this filtering anyways for throttling issues).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜