This article will guide you through adding a "Continue with Linkedin" button to your signup, login, and profile forms. Part one walks you through setting up your Linkedin Developer account step by step. Part two covers how to configure Linkedin Authentication in Memberstack and add the button to your front-end forms.
đ Prerequisites
Before you begin, ensure you have:
- A Memberstack account
- A LinkedIn Developer account
- Access to your website code or Webflow project
1) LinkedIn Developer Console
Step 1: Create a LinkedIn Developer App
- Go to the LinkedIn Developer Portal
- Click âCreate Appâ
- Fill out the fields:
- App Name
- LinkedIn Page
- Upload your logo
- Privacy Policy URL (optional)
- Agree to terms and click Create app
Step 2: Enable OpenID Connect
- After creating the app, youâll land on the Products tab.
- Click the âRequest Accessâ button next to Sign In with LinkedIn using OpenID Connect
- In the popup that appears, check the âI have read and agree to these termsâ box, then click Request Access.
â ď¸ This step is essential! Without enabling OpenID Connect, Memberstack authentication will fail or show network errors.
Step 3: Set Redirect URI
- Click on the Auth tab:
-
Under OAuth 2.0 settings, click the pencil icon to edit. Then click the âAdd Redirect URLâ link and set your Redirect URL to:
Use:
https://client.memberstack.com/auth/callbackOtherwise, if you're using a custom domain, use:
https://memberstack-client.yourdomain.com/auth/callback(Make sure to replace
yourdomain.comwith your actual domain name.) - Click Update to save the redirect URL
-
Step 4: Copy Your Credentials
- Scroll up to the Application Credential section and copy the following for use in Memberstack:
- Client ID
- Client Secret
2) Memberstack and Webflow
Step 1: Enable LinkedIn in Memberstack
- Go to your Memberstack dashboard
-
Navigate to Settings > Auth Providers
- Click the Configure button next to LinkedIn
- Paste the Client ID and Client Secret you copied from Step 4 in Part 1 (LinkedIn Developer Console Setup) into the fields provided.
- Toggle on the disabled button at the bottom left to enable LinkedIn Auth, then click Save.
Step 2: Add the LinkedIn Button to Your Signup Form
- Copy either the **Light Theme LinkedIn Button** or the **Dark Theme LinkedIn Button** from Memberstack's Social Auth Components. These buttons are fully built in Webflow, come with all the necessary attributes, and are easy to customize. (If you prefer to create your own button, make sure to add the
data-ms-auth-provider="linkedin"attribute to it.) - Paste it inside your signup form (not a form block)
â ď¸ Important: The LinkedIn button must be inside a proper Memberstack signup form. Placing it in a form block or outside the form may cause it to stop working.
Step 3: Publish the Website
Once youâve added the LinkedIn button to your signup form, publish your website to make the changes live. Then, open your live site and click the âContinue with LinkedInâ button. This should redirect you to LinkedIn and then back to your website with a successful login session.
3) FAQ
Can members login using a sign up form?
Yes! By default, members who already have an account will automatically be logged.
Can members sign up using a login form?
By default no, but you can enable sign ups in login forms by adding a new attribute to your login modal buttons. Here's a 1-minute video tutorial showing how to add the attributes.
- Add the
data-ms-social-auth-allow-signupattribute to your custom login forms (data-ms-form="login"). - Add the
data-ms-social-auth-allow-signupattribute to your login modal buttons (data-ms-modal="login").
Once complete, your social auth buttons will create accounts for new members.
Profile Forms
In this other tutorial, we'll create a UI for members to connect providers, view previously connected providers, and (optionally) disconnect providers.
Social Auth Buttons in Profile Forms
4) Errors
â 1. "Our LinkedIn Network Will Be Back Soon..."
Cause: OpenID Connect product not enabled in LinkedIn
â Solution:
- Go to your LinkedIn Developer App
- Make sure you clicked âRequest Accessâ for âSign In with LinkedIn using OpenID Connectâ
â 2. LinkedIn Button Doesn't Trigger Popup
Cause: Button is placed outside a Memberstack signup form
â Solution:
- Ensure the button is inside a signup form, not a form block
- Reinsert the component directly inside a Memberstack signup form from the Memberstack Components page
â 3. âInvalid redirect URIâ Error
Cause: Redirect URL in LinkedIn does not match Memberstack's
â Solution:
- Go to your LinkedIn appâs Auth tab
-
Set the OAuth Redirect URI to:
Use:https://client.memberstack.com/auth/callbackOtherwise, if you're using a custom domain, use:
https://memberstack-client.yourdomain.com/auth/callback(Make sure to replace
yourdomain.comwith your actual domain name.)
â 4. No email received from LinkedIn
Cause: LinkedIn account doesnât have a verified email
â Solution:
- Use a different LinkedIn account with a verified primary email address
â 5**. Error: "OPError: invalid_client (Client authentication failed)"**
Cause: If you receive an error similar to the one below when trying to connect LinkedIn: Fix:
- Ensure that you are copying and pasting the actual Client Secret from your LinkedIn Developer Console and not the masked version (****).
Comments
19 comments
It seems that this error occurs because LinkedIn has changed its OAuth 2.0 scopes names
{"error":"OPError: unauthorized_scope_error (Scope "r_liteprofile" is not authorized for your application)"}Hi Illan Knafou đ
I just did some testing on my end, and it all appears to be working. Can you confirm that the scope r_liteprofile is authorized on your Linkedin account?
It appears to have happed automatically for Tyler... what does it look like on your end? Video for ref
Hey Duncan from Memberstack , thank you for your quick reply!
By doing the same tricks as Tyler, I have this:
Sign in with LinkedIn toÂSign in with LinkedIn using OpenID Connect.ÂThank you for this info!! It's super helpful.Â
Tyler Bell can you check this out when you're back from the the WF Conf?Â
I am experiencing the same issue as Illan with setting up LinkedIn Auth. Doesn't look like the 'Sign In with LinkedIn' product is available any longer.Â
Duncan from Memberstack Just curious about the status of this issue. For a number of security/quality reasons, LinkedIn auth is the only one our site will offer for signup. I love all the amazing work you all are doing and appreciate any time you can give this!
Hi Stephanie Sakoda đ Thank you for the follow up!
Let me check in again with Tyler Bell now that he's back from the WF conference.Â
Facing same issue Duncan from Memberstack Can you please update on it by when it will be resolved.Â
Hey Duncan from Memberstack we are also experiencing the same issue. Issue is most likely related to what was described as the OAuth options we get are
We are sort of in a tight timeframe for this as we need it up and running next week so any quick fix is highly appreciated!Â
We were able to replicate the issue and are working on a fix. Turns out we needed to bring in outside help for this, and they are working with us this week.Â
Thanks for you patience and keep an eye on your inbox.
I will tag everyone here once the updates are live. Scayler Memberstack Oussama Atlassi Stephanie Sakoda Illan Knafou
Thank you for the update Duncan from Memberstack!
Duncan Hamra, any updates here?
Scayler Memberstack Stephanie Sakoda Oussama Atlassi Illan Knafou
Thank you all so much for the patience while we got the right people on the job. I'm happy to report the issues are fixed!! You should be able to use LinkedIn again without issue.Â
Duncan from Memberstack We are still getting the same error on our end about
Â
Same here, I have followed all the steps again and I am getting the same error as Scayler Memberstack
Oussama Atlassi and Scayler Memberstack, can you try disabling and re-enabling LinkedIn for me in your dashboard? That should fix it. Â
Hi all
Thanks for this guide.
Can you please help me to retrieve the LinkedIn id or the profile link from this widget?
Hi Saptharishi, I will check with the team. However, I don't think we have an option to pull that information. We'd need to update our LinkedIn integration. I'll see what we can do.Â
In the meantime, can you request the profile URL from the user manually? I know that's not ideal, but I believe it's the only possible solution available today.Â
Sure Duncan
Thanks for your response
Iâll follow your advice
Please sign in to leave a comment.