OAuth2
Authenticate with LinkedIn using OAuth2.
This task authenticates with LinkedIn using the OAuth2 refresh token flow, obtaining an access token that enables secure requests to LinkedIn’s REST API.
type: "io.kestra.plugin.linkedin.OAuth2"Examples
Authentication with LinkedIn
id: linkedin_auth
namespace: company.team
tasks:
  - id: authenticate
    type: io.kestra.plugin.linkedin.OAuth2
    clientId: "{{ secret('LINKEDIN_CLIENT_ID') }}"
    clientSecret: "{{ secret('LINKEDIN_CLIENT_SECRET') }}"
    refreshToken: "{{ secret('LINKEDIN_REFRESH_TOKEN') }}"
Properties
clientId *Requiredstring
The OAuth2 Client ID
OAuth2 client ID from LinkedIn Developer Portal
clientSecret *Requiredstring
The OAuth2 Client Secret
OAuth2 client secret from LinkedIn Developer Portal
refreshToken *Requiredstring
The OAuth2 Refresh Token
Refresh token obtained during the initial authorization flow
tokenUrl string
https://www.linkedin.com/oauth/v2/accessTokenToken endpoint URL
The LinkedIn OAuth2 token endpoint URL
Outputs
accessToken string
Access Token
OAuth2 access token for LinkedIn API authentication
expiresAt string
date-timeExpiration time
The exact time when the token expires
expiresIn integer
Expires In Seconds
Number of seconds until the token expires
scope string
Token Scope
Granted OAuth2 scopes for LinkedIn API
tokenType string
Token Type
Type of the access token (typically 'Bearer')