Prerequisites
- Create a LinkedIn account.
- Create a LinkedIn Company Page.
Using OAuth2
- Go to the LinkedIn Developers Portal.
- Click Create app.
- Fill in the required details and associate the app with a LinkedIn Page.
- Navigate to the Auth tab.
- Under OAuth 2.0 settings, add your redirect URLs:
http://localhost:3000/api/auth/callback/linkedinhttps://your-production-url.com/api/auth/callback/linkedin
- Under Products, request access to "Sign In with LinkedIn using OpenID Connect".
- Copy the Client ID and Client Secret from the Auth tab.
- Add them to your
.envfile:
AUTH_LINKEDIN_CLIENT_ID=your_client_id
AUTH_LINKEDIN_CLIENT_SECRET=your_client_secret
Related Resources
Refer to LinkedIn's Community Management API documentation for more information about the service.
This credential works with API version 202404.
