Connect Apps to LinkedIn

The LinkedIn social connection allows users to log in to your application using their LinkedIn profile.

By default, Auth0 automatically syncs user profile data with each user login, thereby ensuring that changes made in the connection source are automatically updated in Auth0. Optionally, you can disable user profile data synchronization to allow for updating profile attributes from your application.

Prerequisites

Before you begin, sign up for a LinkedIn Developer account.

Steps

To connect your app to LinkedIn, you will:

  1. Set up app in LinkedIn
  2. Create and enable connection in Auth0
  3. Test connection

Set up app in LinkedIn

Set up an app in the LinkedIn Developer portal. During this process, LinkedIn will generate a Client ID and Client Secret for your application; make note of these. After your app is created, you can find these on its Auth view.

While setting up your app, use the following settings:

Field Value to Provide
Authorized redirect URLs for your app https://YOUR_DOMAIN/login/callback. After your app is created, you can find this on its Auth view.

Find your Auth0 domain name

If your Auth0 domain name is not shown above and you are not using our custom domains feature, your domain name is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus.auth0.com. For example, if your tenant name were exampleco-enterprises, your Auth0 domain name would be exampleco-enterprises.us.auth0.com and your redirect URL would be https://exampleco-enterprises.us.auth0.com/login/callback. (If your tenant is in the US and was created before June 2020, then your domain name would be https://exampleco-enterprises.auth0.com.)

If you are using custom domains, your callback URL will have the following format: https://<YOUR CUSTOM DOMAIN>/login/callback. :::s

Create and enable connection in Auth0

Set up the LinkedIn social connection in Auth0. Make sure you have the generated Client ID and Client Secret.

Besides the standard social connection settings, the LinkedIn social connection configuration includes the following:

Setting Description
Strategy Version Version of the LinkedIn API you want to use.

Test connection

You're ready to test your connection.