LinkedIn

This guide explains how to set up LinkedIn as an authentication provider with Stack Auth. LinkedIn OAuth2 allows users to sign in to your application using their LinkedIn account.

Integration Steps

Create a LinkedIn OAuth App

  1. Log in to the LinkedIn Developer Portal.
  2. Click Create app to create a new application.
  3. Enter your App name and select a LinkedIn Page to associate with your app (or create a new one).
  4. Upload an App logo (required for production apps).
  5. Enter the App description and your Business email.
  6. Check the Legal agreement box and click Create app.
  7. On your app's dashboard, click Auth tab from the left sidebar.
  8. Under OAuth 2.0 settings, add the following redirect URL: https://api.stack-auth.com/api/v1/auth/oauth/callback/linkedin
  9. Under Products, request access to Sign In with LinkedIn by clicking Request access. Complete any required information.
  10. Under OAuth 2.0 scopes, make sure at least the following scopes are selected:
    • r_emailaddress
    • r_liteprofile
  11. Once approved, navigate to the Auth tab again to find your Client ID and Client Secret.

Enable LinkedIn OAuth in Stack Auth

  1. On the Stack Auth dashboard, select Auth Methods in the left sidebar.
  2. Click Add SSO Providers and select LinkedIn as the provider.
  3. Set the Client ID and Client Secret you obtained from the LinkedIn Developer Portal earlier.

Need More Help?

Stack Auth AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details.

For the most accurate information, please join our Discord or email us.

How can I help?

Ask me about Stack Auth while you browse the docs.