## LinkedIn integration Integrating LinkedIn with Frontegg allows your application to authenticate users via OpenID Connect, post content on their behalf, and access profile information using LinkedIn's OAuth 2.0 API. Prerequisites - A LinkedIn account - Access to the [LinkedIn Developer Portal](https://developer.linkedin.com/) ### Connect LinkedIn #### Step 1: Open the LinkedIn Developer Portal Navigate to [developer.linkedin.com](https://developer.linkedin.com/). ![LinkedIn Developer Portal](/assets/linkedin-1.d7ce5bc107ad941e3c5831fc0c3197b29cd419933f62acddcfd2fb3de5db21ed.1ce25488.png) #### Step 2: Go to My apps Click **My apps** in the top navigation bar, then click **Create app**. ![LinkedIn My apps page](/assets/linkedin-2.7e270df60743ade46ce10a35b755facbada43d1468ecb4c116ae11abaa8f1ce1.1ce25488.png) #### Step 3: Fill in the app details Fill in the following fields: - **App name**: Enter a name for your app (for example, `Frontegg Integration`). - **LinkedIn Page**: Search for and select your company's LinkedIn Page. - **Privacy policy URL**: Enter your app's privacy policy URL. - **App logo**: Upload a square logo image (at least 100×100 px). Check the **I have read and agree to these terms** checkbox, then click **Create app**. ![LinkedIn create app form](/assets/linkedin-3.4dea1f545918d50658cdab98083a99d22549b4be738cb6f96e945749fba9456a.1ce25488.png) #### Step 4: Enable required products After the app is created, open the **Products** tab. You need to enable two products: - **Sign In with LinkedIn using OpenID Connect** — grants the `openid`, `profile`, and `email` scopes - **Share on LinkedIn** — grants the `w_member_social` scope Click **Request access** next to each product and accept the terms when prompted. ![LinkedIn Products tab](/assets/linkedin-4.efc4a675c546277e18b3f1ae9a22bea9bfebc39948ef7d91862a73eb25fdcecb.1ce25488.png) #### Step 5: Confirm products are added After requesting access, both products appear in the **Added products** section at the top of the Products tab. ![LinkedIn added products](/assets/linkedin-5.073fa9e07d8c24de7394035b8c99edc300339e865400d28aad737e700fdec913.1ce25488.png) #### Step 6: Copy your Client ID Open the **Auth** tab. Your **Client ID** is displayed in the **Application credentials** section. Copy it for use in the Frontegg portal. ![LinkedIn Auth tab with Client ID](/assets/linkedin-6.a3f6757898fcb04c2adcec2277ad84ede9b9fcf5534e3177c6bc5d2565f56c95.1ce25488.png) #### Step 7: Copy your Client Secret Click **Show** to reveal the **Primary Client Secret**, then click **Copy** to copy it. Keep your credentials secure Store the Client Secret immediately after copying it. Never share or commit it to version control. ![LinkedIn Client Secret](/assets/linkedin-7.5349080c544c0490a1e0cd6b0e0701f06bcacfe602e55d3bf866f146a5d2aa33.1ce25488.png) #### Step 8: Add redirect URIs In the **OAuth 2.0 settings** section, click the pencil icon next to **Authorized redirect URLs for your app**. Click **Add redirect URL** and enter the following URIs one at a time: - `https://YOUR_MCP_GATEWAY_URL/integration-callback` Click **Update** to save. ![LinkedIn redirect URIs configuration](/assets/linkedin-8.8f87ab32cb01a7a8749f2dd90ac46cd78c7a78f7d28fc922a2fd2c649e627db6.1ce25488.png) #### Step 9: Confirm the saved settings The Auth tab now shows the redirect URI saved along with the active OAuth 2.0 scopes for your app: | Scope | Description | | --- | --- | | `openid` | Sign in with LinkedIn | | `profile` | Access the user's name and photo | | `email` | Access the user's primary email address | | `w_member_social` | Create, modify, and delete posts and comments on behalf of the user | ![LinkedIn Auth tab saved settings](/assets/linkedin-9.53506b49dd76b803ee26c703f9f7ee41c46a28ddf3f704b88cb8b21695d43cc7.1ce25488.png) ### Configure the Frontegg portal Once you have your **Client ID** and **Client Secret**, configure the integration in the Frontegg portal: 1. Open the **Frontegg portal** and navigate to **[ENVIRONMENT]** → **Integrations** → **LinkedIn**. 2. Enter the **Client ID** and **Client Secret** in the corresponding fields. 3. Select the required **scopes**. 4. Click **Save**. ### Additional resources - [LinkedIn OAuth 2.0 documentation](https://learn.microsoft.com/en-us/linkedin/shared/authentication/authentication) - [LinkedIn Developer Portal](https://developer.linkedin.com/) - [How to get your Redirect URL](/agen-for-work/connectors/redirect-url)