Appearance
LinkedIn authentication
LinkedIn authentication lets your users sign in with their LinkedIn account.
Setup in the LinkedIn dashboard
- Go to the LinkedIn Developer portal.
- Create an app (or open an existing app).
- In your app settings, find the OAuthentication subtab.
- Add a redirect URL (the URL LinkedIn sends users back to after login).
- Use the WeWeb callback URL: the address of your app followed by
/api/auth/callback/linkedin. The table below lists the URLs to add.
- Use the WeWeb callback URL: the address of your app followed by
- Copy your credentials (for example
Client IDandClient Secret).
Add one callback URL for each place where users sign in:
| Where users sign in | Callback URL to add in LinkedIn |
|---|---|
| Editor | https://<your-project>-editor.weweb.io/api/auth/callback/linkedin |
| Staging app | https://<your-project>-staging.weweb.io/api/auth/callback/linkedin |
| Published app | https://<your-project>-production.weweb.io/api/auth/callback/linkedin |
| Custom domain | https://your-domain.com/api/auth/callback/linkedin |
Replace <your-project> with your project's WeWeb subdomain. You can see it in your browser's address bar when the editor is open, for example bright-harbor in https://bright-harbor-editor.weweb.io.
CALLBACK URL VS SUCCESS PAGE
LinkedIn always sends users back to the callback URL, never to a page of your app. WeWeb then completes sign in and takes users to the Success Page, Error Page, or New User Page you choose in the Sign in with social provider action. Do not add the URL of these pages in LinkedIn.
Connect LinkedIn in WeWeb
- In the WeWeb editor, open the
Data & APItab, then open theAuthenticationsubtab and go toSSO Providers. - Select
LinkedInand turn on theEnabletoggle. - Paste your credentials into the fields shown in WeWeb.
- Click
Save.
Test sign in
- Add a “Continue with LinkedIn” button in
Interface. - Create a workflow on click and add
Sign in with social provider. - Set:
Provider:linkedinSuccess Page,Error Page, and (optional)New User Page
- Preview and complete the sign-in flow.
Common pitfalls
Redirect URL mismatch
Make sure the redirect URL in LinkedIn exactly matches the WeWeb callback URL ending with /api/auth/callback/linkedin (no trailing slash), not the Success Page URL you selected in WeWeb.
Reference
| Setting in WeWeb | Description | Where to find it in LinkedIn |
|---|---|---|
Client ID | Identifies your LinkedIn app. | Your app’s OAuth settings. |
Client Secret | Used to complete the sign-in flow securely. | Your app’s OAuth settings. |
FAQs
Which redirect URL should I add in LinkedIn?
Add the address of your app followed by /api/auth/callback/linkedin, for example https://your-domain.com/api/auth/callback/linkedin. Add one for each place where users sign in (editor, staging app, published app, custom domain). The URL of your Success Page is not the redirect URL.

