Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
md 37 lines 2.39 KB
Rendered Raw
1 ## How do I set up custom OAuth credentials for LinkedIn?
2
3 Use your own LinkedIn app for production, to avoid the shared app's rate limits and to show your own app name and logo on the consent screen.
4
5 ### Create the LinkedIn app
6
7 1. Go to [LinkedIn Developers](https://developer.linkedin.com/) and click **Create app**.
8
9 ![LinkedIn Developers home page with the Create app button](/images/toolkits/linkedin/create-app.webp)
10 2. Enter the app name, your company's LinkedIn page URL, and the logo users see when they authorize. Agree to the legal terms and click **Create app**.
11
12 ![LinkedIn Create an app form with app name, LinkedIn Page, logo and legal agreement](/images/toolkits/linkedin/app-details.webp)
13 3. Open the app's **Auth** tab. Under **Application credentials**, copy the **Client ID** and **Client Secret**.
14
15 ![LinkedIn app Auth tab with Application credentials showing Client ID and Primary Client Secret](/images/toolkits/linkedin/auth-credentials.webp)
16 4. In the same tab, under **OAuth 2.0 settings**, add the authorized redirect URL `https://backend.composio.dev/api/v1/auth-apps/add`. It must exactly match the `oauth_redirect_uri` field in your Composio auth config.
17
18 ### Create the auth config in Composio
19
20 1. In the Composio dashboard, go to **Auth Configs**, click **Create Auth Config**, and select **LinkedIn**.
21 2. Keep the authentication type as **OAuth2** and choose **Use your own developer authentication**.
22 3. Paste the **Client ID** and **Client Secret**, then click **Create LinkedIn Auth Config**.
23 4. Click **Connect Account**, approve access in LinkedIn, and confirm the account shows as **Active**.
24
25 See [Custom auth configs](/docs/auth-configuration/custom-auth-configs) for the general flow.
26
27 ### Scopes
28
29 The default auth config requests `openid`, `profile`, `email`, and `w_member_social`. Your LinkedIn app must have access to every scope you request. LinkedIn restricts some scope combinations; see the scope question below.
30
31 ## Why am I getting 429 rate limit errors on LinkedIn?
32
33 The default OAuth app is shared across users and has strict rate limits. Use your own OAuth app for production to avoid shared quotas.
34
35 ## Why can't I use certain LinkedIn scope combinations?
36
37 LinkedIn restricts certain scope combinations. For example, `w_member_social` and `r_organization_admin` cannot be used together. If you need conflicting scopes, create your own OAuth app with the required permissions.