ozgur / python-linkedin

Python interface to the LinkedIn API
http://ozgur.github.com/python-linkedin/
MIT License
894 stars 392 forks source link

Unable to verify access token? #38

Closed listingboat closed 10 years ago

listingboat commented 10 years ago

I'm seeing intermittent issues resulting in getting 'Unable to verify access token' from get_profile() after authenticating.

I'm checking if request.session.has_key('linkedin_access_token'): before calling it and it works fine in most cases.

Is this a known issue or am I doing something incorrectly?

listingboat commented 10 years ago

Followup, apparently this is a LinkedIn issue with the suggested work around to put the post parameters on the request URL. See http://developer.linkedin.com/forum/unauthorized-invalid-or-expired-token-immediately-after-receiving-oauth2-token?page=1

I have not tried this as yet.

amarkbo commented 10 years ago

I created a pull request that addresses this: https://github.com/ozgur/python-linkedin/pull/43

In my testing, it seems to fix the issue