I am looking forward to developing an example of Spring MVC + Apache Oltu + Linkedin integration. In this example, you need to send the client ID and secret key to access the private resource from the linked site.
The first step is that we need to create the application on Linkedin, follow these steps: http://codeboxr.com/how-to-create-linkedin-app.html
After creating the application, you need to make sure that you specify a value for the redirect URL.
In the java code that I used setScope ("r_network w_share r_basicprofile") SetState ("987654321")
When I used the following code:
request= new OAuthBearerClientRequest("https://api.linkedin.com/v1/people/").buildQueryMessage();
I get the following error message. Can anyone please?
Could not access resource: 401 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <error> <status>401</status> <timestamp>1429554559432</timestamp> <request-id>QJWNLL5PWX</request-id> <error-code>0</error-code> <message>Unknown authentication scheme</message> </error>
The important thing, I get the correct details below, but it seems to refer to private resources:
{"access_token":"SQXZVmVM05AOzDB_DdBm5iaJkrEC8oK-FgE1m1snEZbMcKUODew9I0ZQ6NWc8JtGDxTtEd-yyPul0FtF3-hG4ah6LZ9P4oaSVuhhtybRFmjfsZcJwOs5Lm2IDUGQnjmq5EdT3PVR7Bocq31VBXg0JtkQdImab945oicO_w2j6CjlByp-bWw", "expires_in":5108376} FgE1m1snEZbMcKUODew9I0ZQ6NWc8JtGDxTtEd-yyPul0FtF3-hG4ah6LZ9P4oaSVuhhtybRFmjfsZcJwOs5Lm2IDUGQnjmq5EdT3PVR7Bocq31VBXg0JtkQdImab945oicO_w2j6CjlByp-bWw", {"access_token":"SQXZVmVM05AOzDB_DdBm5iaJkrEC8oK-FgE1m1snEZbMcKUODew9I0ZQ6NWc8JtGDxTtEd-yyPul0FtF3-hG4ah6LZ9P4oaSVuhhtybRFmjfsZcJwOs5Lm2IDUGQnjmq5EdT3PVR7Bocq31VBXg0JtkQdImab945oicO_w2j6CjlByp-bWw", "expires_in":5108376}
spring-mvc spring-social-linkedin linkedin oltu
user4798115
source share