Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

LinkedIn

Learn how to set up a social connection with LinkedIn in your Clerk application.

To make the development flow as smooth as possible, Clerk uses preconfigured shared OAuth credentials and redirect URIs for development instances - no other configuration is needed. Simply navigate to the Social Connections page in your Clerk Dashboard, toggle on the LinkedIn option, and click Save.

In production instances, you must provide custom credentials, which includes generating your own Client ID and Client Secret using your LinkedIn Developer account. Don't worry, this guide will walk you through that process in just a few simple steps.

Before you start

  • You need to create a Clerk Application in your Clerk Dashboard. For more information, check out our Set up your application guide.
  • You need to have a LinkedIn account. To create one, click here.

Configuration

Create a LinkedIn application

To create a new OAuth LinkedIn app, go to the LinkedIn Developer dashboard and click on the Create app button.

The Linkedin Developer dashboard's homepage. A red arrow is pointing to the 'Create app' button.

Once redirected to the application creation form, you need to set a name, associate a LinkedIn page with it, and upload a logo for your new application.

The 'Create new app' form in the Linkedin Developer portal.

LinkedIn + your Clerk app

You need to enable LinkedIn as a social connection for your Clerk application.

Navigate to the Social Connections page in your Clerk Dashboard. Toggle on the LinkedIn option.

The 'Social connections' page in the Clerk Dashboard. A red arrow is pointing to the LinkedIn toggle.

In the modal that opened, copy Authorized redirect URI. Keep this modal and page open.

The LinkedIn settings modal in the Clerk Dashboard. A red arrow is pointing to the 'Redirect URI' copy button.

Configure LinkedIn application

Navigate back to your LinkedIn app and go to the Auth tab.

Paste the Redirect URL value you copied from the Clerk Dashboard into the Authorized redirect URLs for your app input in the OAuth 2.0 settings section.

Above that section, copy the Client ID and Client Secret from the Application credentials section. Go back to the Clerk Dashboard, where the modal should still be open, and paste these values into the respective fields.

If the modal or page is not still open, navigate to the Social Connections page in the Clerk Dashboard and click on the settings cog icon next to the LinkedIn option. You can now paste the Client ID and Client Secret into their respective fields.

The 'Auth' tab in the Linkedin Developer dashboard for a user's application. There is a red box around the 'Authentication keys' section, which contains the 'Client ID' and 'Client Secret' values. There is also a red box around the 'Authorized redirect URLs for your app' section.

Enable OpenID Connect

In the LinkedIn Developer portal for your application, go to the Products tab. Enable the Sign In with LinkedIn using OpenID Connect product for your OAuth application.

The 'Products' tab in the Linkedin Developer dashboard for a user's application. There is a red arrow with the number 1 pointing to the 'Products' tab and a red arrow with the number 2 pointing to the 'Request access' button on the 'Sign In with LinkedIn using OpenID Connect' product.

Finished 🎉

Congratulations! Social connection with LinkedIn is now configured for your instance.

What did you think of this content?

Clerk © 2023