Create LinkedIn Account

Create a LinkedIn OAuth App

  • Go to the LinkedIn Developer Dashboard.
  • Click on Create App in the top right.
  • Fill in App Name, LinkedIn Page and App Logo.
  • Click “I have read and agree to these terms”.
  • Click Create app in the bottom right.

LinkedIn OAuth App Information

  • Click on Auth in the top menu.
  • Click on the pen icon under OAuth 2.0 settings and right next to Authorized redirect URLs for your app.
  • Click Add redirect URL.
  • Copy and paste the OAuth Callback URL from Nhost.
  • Click Update.

Enable Sign In with LinkedIn using OpenID Connect

  • Click on Products in the top menu.
  • Scroll down and look for Sign In with LinkedIn using OpenID Connect.
  • Click Request Access.
  • Click the checkbox I have read and agree to these terms.
  • Click Request Access.

Configure Nhost

  • Copy and paste the Client ID and Client Secret from LinkedIn to your Nhost OAuth settings for LinkedIn.
  • Click the checkbox “I have pasted the redirect URI into LinkedIn”.
  • Click Confirm settings.

Enable Auth for your LinkedIn OAuth App

  • Click on Products in the top menu.
  • Click Select on the Sign In with LinkedIn.
  • Check the checkbox I have read and agree to these terms.
  • Click Add product.

Sign In Users

Use the Nhost JavaScript client to sign in users:

nhost.auth.signIn({
  provider: 'linkedin'
})

To use your own domain for the callback URL refer to the custom domains documentation.