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.
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.
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.
Start by filling out the form with the required details about your application, like the application name, LinkedIn page, and app logo.
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.
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.
Click the products tab and add the Sign In with LinkedIn using OpenID Connect product.
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.
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.