LinkedIn: Exchange JSAPI token to REST's OAuth token

I'm working on a website which has the api (Ruby on Rails) and the client (Angular JS) on separated servers.

As of that, I authenticate the user on the client with LinkedIn, I post the received data to the API's authentication method and I get JWT back from it.

Then I authenticate with the token attached to every request, while making all the LinkedIn API requests on the backend.

I see there were a lot of posts about how to exchange jsapi token to oauth token, but they have all been removed from LinkedIn's page and there are no usable information in the stored data.


Note: all other StackOverflow answers are linking to those pages too.


ANSWERS:


The documentation was relocated to



 MORE:


 ? create and manage authentication token tomcat
 ? How can I send a JWT token to an external URL?
 ? How can I send a JWT token to an external URL?
 ? How can I send a JWT token to an external URL?
 ? Adding JWT Token in Volley Request
 ? How do I add a json web token to each header?
 ? angular2-jwt token alwas not valid
 ? STS JPA Tools not generating all Entities from Tables
 ? PHP create exact key string from array values by provided ID and length
 ? How to Control Programmatically Generated TextViews