Linkedin - Authentication

Authentication

Syntax:

https://www.linkedin.com/uas/oauth2/authorization?
       response_type=code
       &client_id=APIKey
       &scope=r_fullprofile+r_emailaddress+r_network+r_contactinfo+rw_nus
       &state=DCEEFWF45453sdffef424
       &redirect_uri=http://gerardnico.com/linkedin.php

where:

  • response type must be always code. The code will permit to get the Access Token
  • client_id is the Api Key
  • scope determines the user information that the application can read. See scope. Which information the application would like to access ?
  • state is a long generated character to avoid an attack (Called also a verifier)
  • redirect_uri is an URI where the respone (ie the code) will be returned.

Scope

The scope gives the permissions level. In order to retrieve the connections, you'll need to have the r_network scope granted to the application.

Documentation / Reference


Powered by ComboStrap