sandeshdate / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

how to avoid repeated authorizations from linkedin to same application #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
final LinkedInOAuthService oauthService = 
LinkedInOAuthServiceFactory.getInstance().createLinkedInOAuthService(consumerKey
Value, consumerSecretValue);
LinkedInRequestToken requestToken = 
oauthService.getOAuthRequestToken(callbackUrl);
session.setAttribute("requestToken", requestToken);
String authUrl = requestToken.getAuthorizationUrl(); 
return new ModelAndView("redirect:" + authUrl);

I am using the above code block to make user grant permission to my application 
from LinkedIN. The authorization screen is appearing everytime when I redirect 
user to authURL with the same default scope. Not able to figure out if I am 
missing anything here.

Original issue reported on code.google.com by nvinod37@gmail.com on 25 Oct 2012 at 12:37

GoogleCodeExporter commented 8 years ago
May be this link will help you

http://stackoverflow.com/questions/5804257/posting-linkedin-message-from-android
-application

Original comment by Khawarja...@gmail.com on 31 Oct 2012 at 10:03

GoogleCodeExporter commented 8 years ago
This option worked ( http://stackoverflow.com/a/13136322/1234198 ). The java 
api is not giving me autorization url 
https://www.linkedin.com/uas/oauth/authenticate. It instead is giving 
https://www.linkedin.com/uas/oauth/authorize

Original comment by nvinod37@gmail.com on 31 Oct 2012 at 10:46