CMS Development

evaldas
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Social login for membership pages

SOLVE

Has anyone ever had success implementing the social login for membership pages? (In particular Google sign in)

 

I followed all the steps listed out in this guide to try and add a Google login button but it does not seem to work properly.

 

https://developers.hubspot.com/docs/cms/guides/membership/social

 

Confirming that:

  • The list contains only one contact with an email address matching the google account I am trying to log in with.
  • I added the destination URL to "Authorized Redirect URIs" in the Client ID settings in Google
  • I got the Google login button to show up and generate the login box when clicked. 
  • Able to submit the Google login pop up form.

 

After submitting Google account login credentials, the page simply refreshes to the main login screen ...website.com/_hcms/mem/login?redirect_url=https%3A%2F%2Fwebsite.com%2Fyour-gated-page

 

evaldas_0-1708016488554.png

 

If I click "Sign in" again, it then produces that same login popup but now its showing me as already logged in (just provides an option to sign in with a different account) - so that part seems to work. I just cannot get past this login screen.

 

The help article was created in August 27, 2021 - so would like to know at least whether something may have changed since then or I am doing something wrong.

✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes
1 Accepted solution
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Social login for membership pages

SOLVE

Hi @Jnix284  - thank you for the reply.

 

The help article title probably adds some confusion here with the word "social" in it. Confimring that we are not trying to add Google Plus, but the ability to sign in with a Google account, which should not require SSO. 

 

For example, Loom has options to Sign in with Google in addition to SSO:

evaldas_0-1708466378665.png

 

I heard from one HubSpot support rep that, to their knowledge, the article instructions should still be valid. After further digging and exploration, I finally got it to work!

 

If anyone runs into the same problem - the issue appears to be that I was trying to do this on a developer test account.

 

I tried on a real HubSpot portal with a real domain connected and it worked fine there (as of February 2024).

 

✔️ Did this post help answer your query? Help the community by marking it as a solution.

View solution in original post

4 Replies 4
abhiladdha07
Member

Social login for membership pages

SOLVE

Hi @evaldas,

 

Yes, miniOrange has a easy to use solution for this. you can use miniOrange's Single Sign-On (SSO) for HubSpot app's Enterprise SSO feature to configure as many Identity Providers you want includint the social providers like Google, Facebook, Apple, Twitter, LinkedIn etc. and many more. You can read more from here.

 

You can reach out to hubapps@xecurify.com to contact miniOrange app team to help you out for for your requirements.

 

Best,

Abhishek

Jnix284
Hall of Famer

Social login for membership pages

SOLVE

@evaldas it sounds like you're trying to allow access to membership pages via Google Account login, not Google Social login.

 

The Social login documentation is from 2021, when there was Google Plus - it was for Facebook or Google Plus login, not SSO using a Google account login.

 

You'd need to configure SSO with Okta or OneLogin (Google Workspace accepts both)


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Social login for membership pages

SOLVE

Hi @Jnix284  - thank you for the reply.

 

The help article title probably adds some confusion here with the word "social" in it. Confimring that we are not trying to add Google Plus, but the ability to sign in with a Google account, which should not require SSO. 

 

For example, Loom has options to Sign in with Google in addition to SSO:

evaldas_0-1708466378665.png

 

I heard from one HubSpot support rep that, to their knowledge, the article instructions should still be valid. After further digging and exploration, I finally got it to work!

 

If anyone runs into the same problem - the issue appears to be that I was trying to do this on a developer test account.

 

I tried on a real HubSpot portal with a real domain connected and it worked fine there (as of February 2024).

 

✔️ Did this post help answer your query? Help the community by marking it as a solution.

Jnix284
Hall of Famer

Social login for membership pages

SOLVE

Awesome, thanks for sharing @evaldas, our devs have done similar with Google login through Okta, I didn't realize it was possible independtly through this API. 

 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon