jnorthr / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

LinkedIn apps need to request for permission in the requestToken phase #240

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Register a new application on LinkedIn (or upgrade your API key to use 
member permissions)
2. Get access token
3. Try to post POST to /people/~/shares
4. 403 is returned by LinkedIn

Please provide any additional information below.

New LinkedIn apps need to request for permission in the requestToken phase.

From https://developer.linkedin.com/documents/authentication

Requesting permissions from the user is fairly straight forward. Simply append 
the permissions you want granted in your request token call using the "scope" 
query paramter. The following example asks for basic profile and email address 
permissions:

POST 
https://api.linkedin.com/uas/oauth/requestToken?scope=r_basicprofile+r_emailaddr
ess+rw_nus

Attached patch is based on trunk/socialauth-core and fixes the problem for us.

Original issue reported on code.google.com by matija.o...@gmail.com on 14 Dec 2012 at 3:26

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for this patch.

We have made changes in our library to add permissions for linkedin. Code is 
slightly different from your patch. It is available in SVN.

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 9 Jan 2013 at 8:14