Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.19 KB

readme.md

File metadata and controls

19 lines (14 loc) · 1.19 KB

Linkedin Auth

This repository contains the source code for the script which automates the process of requesting LinkedIn access key for your application.

Workflow:

  1. Calling of the script with client id, client secret, redirect url of the application and the list of permissions required.
  2. Going to the url generated by the application and allowing the usage of requested permissions.
  3. Redirection to the redirect url passed to cli.
  4. Copying the "code" request parameter from redirect url and passing it to the script.
  5. If code will match, the script will print the access key for the LinkedIn application.

CLI:

  1. --help get a help message from the script.
  2. -c <value> or --client-id <value> allows to pass a client id of the LinkedIn application (required).
  3. -s <value> or --client-secret <value> allows to pass a client secret of the LinkedIn application (required).
  4. -p <value>... or --permissions <value>... accepts the values of permissions (one or multiple) requested for the application (required).
  5. -r <value> or --redirect-url <value> accepts the redirect url for the application. It must match with those in application configuration (required).