.env changes are needed.
MagicPost uses LinkedIn’s OpenID Connect sign-in and asks for the openid, profile and email scopes. LinkedIn must return an email address, otherwise the sign-in is refused.
This is sign-in for your own users. To publish to a LinkedIn profile or Page you use the credentials under Admin → Publishing → Platforms, which need different LinkedIn products. See LinkedIn. Setting up this login does not connect a channel.
Before you start
- You can sign in to the MagicPost admin panel.
- You have a LinkedIn account that can use the LinkedIn Developer portal.
- You have a LinkedIn Page to associate with the app. LinkedIn asks for one when you create an app.
- Your site runs on its public
httpsaddress.
Step 1. Copy the Callback URL
1
Open Auth Settings
Go to Admin → Backend Settings → Auth Settings and scroll to the LinkedIn section.
2
Copy the Callback URL
Copy the value of the read-only Callback URL field. It looks like
https://your-domain.com/auth/linkedin/callback. You paste it into LinkedIn next.Step 2. Create the LinkedIn app
1
Create the app
Go to linkedin.com/developers/apps and click Create app. Enter an App name, select the LinkedIn Page to associate, add a logo, accept the terms and create the app.
2
Add the OpenID Connect product
Open the Products tab and request Sign In with LinkedIn using OpenID Connect. This product is what grants the
openid, profile and email scopes. They cannot be added by hand. Do not pick the older sign-in product.3
Add the redirect URL
Open the Auth tab. Under OAuth 2.0 settings, next to Authorized redirect URLs for your app, click the edit icon and choose Add redirect URL. Paste the Callback URL from Step 1 and save.
4
Copy the credentials
Still on the Auth tab, copy the Client ID and the Primary Client Secret from the application credentials.
Step 3. Configure MagicPost
1
Turn on the master switch
On Admin → Backend Settings → Auth Settings, switch on Login via Social (oAuth). It saves as soon as you toggle it.
2
Enable LinkedIn and fill in the credentials
In the LinkedIn section, switch on Enable LinkedIn Login and fill in:
- LinkedIn API Key: the Client ID.
- LinkedIn API Secret Key: the Client Secret.
- LinkedIn Redirect URL: the same address as Callback URL.
3
Save
Click Save. The toast reads Settings were saved successfully.
Test it
- Open your site’s login page in a private browser window.
- Click LinkedIn under or continue with.
- Approve the LinkedIn consent screen.
- You land on the dashboard. The registration page offers the same button under or sign up with.

