WorkOS Docs Homepage
Integrations

LinkedIn OAuth

Learn how to set up OAuth with LinkedIn.

To configure your global LinkedIn OAuth setup, you’ll need three pieces of information: a Redirect URI, a LinkedIn Client ID, and a LinkedIn Client Secret.

WorkOS provides the Redirect URI, an allowlisted callback URL. It indicates the location to return an authorized user to after both an authorization code is granted, and the authentication process is complete.

Open your WorkOS Dashboard and browse to the Authentication section on the left hand navigation bar. Scroll down to the LinkedIn OAuth section and click Enable.

A screenshot showing the LinkedIn OAuth section in the WorkOS Dashboard.

In the modal, you’ll see the Redirect URI as well as the fields you’ll populate later with information from LinkedIn. Copy this URI. We will use it as part of the registration process in the LinkedIn Developer Portal.

A screenshot showing the LinkedIn OAuth configuration modal in the WorkOS Dashboard.

In order to integrate you’ll need the LinkedIn Client ID and the LinkedIn Client Secret.

These are a pair of credentials provided by LinkedIn that you’ll use to authenticate your application via the OAuth protocol. To obtain them:

Log in to your LinkedIn account, go to the Developer Portal page and click on Create app.

A screenshot showing the LinkedIn page to register a new OAuth application.

Start by filling out the form with the required details about your application, like the application name, LinkedIn page, and app logo.

A screenshot showing the LinkedIn form to create a new OAuth application.

Finally, click on Create app.

On the next page, click the Auth tab. Copy the Client ID and Primary Client Secret. We will use them in the next step.

A screenshot showing OAuth client credentials in the LinkedIn developer settings

Click the pencil button at OAuth 2.0 settings > Authorized redirect URLs for your app. Click Add redirect URL and paste the WorkOS Redirect URI. Click Update.

A screenshot showing OAuth redirect URL in the LinkedIn developer settings

Click the products tab and add the Sign In with LinkedIn using OpenID Connect product.

A screenshot showing the LinkedIn OIDC configuration dashboard

Go back to the Authentication section in the WorkOS Dashboard, and click on Edit under LinkedIn OAuth.

Toggle Enabled on and provide the client credentials from LinkedIn that you generated in the previous step.

Finally, click Save.

A screenshot showing the LinkedIn OAuth configuration modal in the WorkOS Dashboard.

You are now ready to start authenticating with LinkedIn OAuth. Your users will see the option to sign-in with LinkedIn when visiting your AuthKit domain.