Login to LinkedIn via OAuth
linkedin_oauth_loginAuthenticate with LinkedIn via OAuth PKCE flow. Opens your browser, captures the callback, and saves the access token for future automated API calls.
Instructions
Authenticate with LinkedIn using OAuth PKCE flow.
Opens your browser to LinkedIn's authorization page, captures the callback, exchanges the authorization code for an access token, and saves it to the config file for future use.
This is the recommended way to authenticate. Once complete, all other tools can use the saved token automatically.
Prerequisites:
LINKEDIN_CLIENT_ID environment variable set
LINKEDIN_CLIENT_SECRET environment variable set
A LinkedIn Developer App with "Sign In with LinkedIn using OpenID Connect" and "Share on LinkedIn" products configured
Args:
port (number, 1024-65535): Localhost port for the OAuth callback (default: 8080)
open_browser (boolean): Auto-open browser (default: true). Set false for headless.
timeout (number, 30000-600000): Max wait for callback in ms (default: 120000)
Returns: Confirmation message with token expiry and granted scopes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | TCP port for the localhost callback server (default: 8080) | |
| timeout | No | Maximum time in ms to wait for the OAuth callback (default: 120000) | |
| open_browser | No | Whether to automatically open the browser to LinkedIn (default: true). Set to false in headless environments. |