Social Sign-On, also known as Social Authentication or Social Login, is a user authentication mechanism that allows individuals to access a website, application, or service by using their existing social media or identity provider credentials instead of creating a new account-specific username and password.

In this tutorial today, we will dive into understanding what Social Sign-On in Salesforce is, how it works, and how to implement it. So, let’s get started

Understanding Social Sign-Ons in Salesforce

In Social Sign-On, users can log in or register for a service by clicking on a social media platform’s icon (e.g., Facebook, Google, LinkedIn) and granting permission for the service to access certain information from their social media profile. Once permission is granted, the user is granted access to the service without the need to enter a separate username and password.

Some users prefer to use an existing account with a service such as Google or Facebook to log in to the site instead of setting up a new account and password. The third-party service is an authentication provider that verifies user identification. Use the Social Login component to add an icon for each supported authentication provider. The user clicks the icon and logs in using the associated account’s username and password. To enable customers to log in to Salesforce with their social credentials, you configure an authentication (auth) provider for the social account. 

Here’s what your customer experiences when you do.

  •  A customer encounters a Salesforce login page with options to log in via Google,
    Facebook, and Twitter, as well as a username and password.          
  •  The customer chooses to log in via Gmail credentials. 
  • Salesforce redirects the customer to Gmail.
  • The customer logs in to Gmail. 
  • Automatic Gmail logging to Salesforce automatically because Salesforce trusts Gmail’s verification.

Why To Implement Social Sign-On in Salesforce?

Before we dive into the technical aspects, let’s explore why implementing Social Sign-On in your Salesforce instance is a smart move:

  • Enhanced User Experience: Social Sign-On eliminates the need for users to remember yet another username and password for Salesforce. This streamlined login process significantly enhances user experience, reduces frustration, and increases user engagement.
  • Accelerated Onboarding: New users can quickly sign up and access Salesforce using their existing social media accounts. This can speed up the onboarding process for customers, partners, and employees.
  • Improved Security: While using social media credentials may raise some security concerns, many social networks implement robust security measures. Additionally, Salesforce can be configured to enforce strict security policies, making Social Sign-On a secure option.
  • Data Enrichment: Social Sign-On can fetch additional user data from their social profiles, enriching the information available in Salesforce. This data can be used for personalization, targeted marketing, and a better understanding of your users.

Implementing Social Sign-On in Salesforce

STEP 1: GO to  SETUP and then search AUTH. PROVIDERS in the quick find box.

image

STEP 2: Click On AUTH. PROVIDERS, there will be a new window where we have to Select the type of PROVIDERS we want. For instance, let’s consider gmail.

image 1


STEP 3:
After selecting AUTH. PROVIDERS there will be more fields to fill up

STEP 4: Write down the Name.

STEP 5: URL SUFFIX will automatically take the name as its entry.

STEP 6: Create an AUTO-GENERATED REGISTRATION CLASS or you can create one.

Here we have generated an AutocreatedRegHandler1692605085793 with some modifications in it.

3 58000f9e9b

STEP 7: Write your name from users in Execute Registration As.

STEP 8: You can select the Icon URL from the available icon list

STEP 9: Now Click On Save button.

STEP 10: Now Paste the  Test-Only Initialization URL in the Private window. It will show the following info:

5 5800218178

 

6 58015583dc

 

STEP 11: Again go to QUICK FIND BOX and then Search MY DOMAIN.

7 580161db1a

 

STEP 12: Now edit the My Domain Details.

8 580170d92d

 

STEP 13: Now click on  Check Availability whether the Domain Is available or not.

9 58018fbe03

 

STEP 14: Click on the Save Button.

STEP 15: Now go to  Authentication Configuration and Edit it.

STEP 16: Go To Authentication Service and Mark Google in it.

9 1 580196099a

 

STEP 17: Click on Save Button.

STEP 18: Now Click on Current My Domain URL and copy it.

10 58020f5417

 

STEP 19: Now Paste this URL in Private Window.

STEP 20: The output will look like this:

11 5802101910

 

STEP 21: Hence You can log into Salesforce Via Gmail Credentials.

Conclusion

We hope you find the solution helpful. Be sure to try out the solution and share your suggestions with us. And for more such interesting tutorials, stay tuned!

Related Articles
Step-by-Step Guide to Enhance Your LWC Development Workflow with the Logger API

Are you looking to streamline your LWC development workflow but confused about how to do it? Then you are in the right place. The Salesforce Logger API is a powerful tool that helps you monitor, debug, and improve code quality in real time.  This step-by-step guide walks you through how to set it up and […]

Read More
Enhancing Your Salesforce Experience with a Custom Activity Component

In today’s fast-paced business landscape, productivity hinges on streamlined workflows and intuitive interfaces. While Salesforce offers robust activity tracking capabilities, sometimes the standard components fall short of specific organizational needs.  That’s where a Custom Activity Component comes in—designed to tailor your activity management experience, boost user efficiency, and provide deeper insights into customer interactions. In […]

Read More
Step-by-Step Guide to Integrating Salesforce Doc-Gen with eSigning Tools

In today’s fast-paced digital landscape, streamlining document workflows is no longer a luxury—it’s a necessity.  Integrating a document generation app, like Docs Made Easy, with an eSigning tool, helps businesses automate the entire document lifecycle—from creation to signature—saving time, reducing errors, and boosting productivity. In this guide, we’ll walk you through the key steps, tools, […]

Read More
How to Build a Real Time Chat Application Using LWC and Models API

The Models API plays a significant role in providing access to and facilitating interaction with large language models (LLMs) from various Salesforce partners such as Anthropic, Google, and OpenAI. It enables applications to leverage these models for various tasks, including text generation and other AI-powered capabilities. As a user, you can configure any Salesforce-enabled model […]

Read More
How to Integrate Salesforce Data Cloud with Amazon Redshift

Companies can finally connect Amazon Redshift to Salesforce Data Cloud without using the ordinary username & password authentication systems ever since its collaboration with AWS has happened. Business owners no longer have to be concerned about managing static credentials or breaching data security. By leveraging Salesforce IDP, companies can easily access their data lakehouse in […]

Read More
Trigger Prompt Templates Using Flow, Apex, or REST API

A prompt template is a pre-designed structure in Salesforce, specially designed to create personalized prompts by filling the substitute with particular details of customers, products, and more. This approach strengthens the creation of prompts and lets teams generate data-driven content. Every time a prompt template is used, it automatically merges the data to create a […]

Read More
Our Location worldwide
Indian Flag India
3rd Floor, A-10, Pegasus Tower, Sector 68, Noida, Uttar Pradesh 201301 +91-1203117884
United States of America Flag USA
333 West Brown Deer Road Unit G – 366 Milwaukee WI, USA 53217 +1(262) 310-7818
United Kingdom Flag UK
7 Bell Yard, London, WC2A 2JR +44 20 3239 9428
Canada Canada
HIC Global Solutions INC
43 Lafferty Lane, Richmond Hill, L4C 3N8, CA +1(262) 310-7818