Configuring Social Logins

Before you enable Social Logins while setting up an authentication method, you must complete certain steps to ensure you have the required Client ID and Client Secret for each service that you require. This involves configuring an app in the respective social login’s developer console, and fetching the OAuth credentials. You will also need to have your own account with each of the Social Login providers to access their developer consoles.

Note: Public Signup must be enabled to use Social Logins.

Enable Zoho Social Login

Because you are building application on Catalyst, you do not have to create an OAuth Client ID and Client Secret to enable Zoho sign in. You can easily enable the Zoho social login in this way:

  1. Click the Zoho social login option while setting up the authentication, and enter the name of your application as the client name cloud_scale_zoho_social_login_enable

  2. Click Enable to implement user sign ups using Zoho social login. cloud_scale_authenticationsocial_login_zoho

Your end users can now sign up to your application using their Zoho credentials.

Enable Google Social Login

To enable Google sign in option in your application, you must obtain the required OAuth credentials for your application from Google in the following manner:

  1. Login to the Google API Console and click Create Project. catalyst_authentication_google_social_login_createprj

  2. Click New Project. catalyst_authentication_google_social_login_newproj

Note: If you had already created a project in the Google developer console for your application, select your existing project. Skip the next step for an existing project.
  1. Enter the required information and click Create. catalyst_authentication_google_social_login_enterappdets

  2. After the project has been created, navigate to the Credentials page. You will be asked to configure the OAuth consent screen with your application details, if it is a new project. Click Configure Consent Screen. catalyst_authentication_google_social_login_configcs

Note: If this is not a new project, you can modify some information about your application. Navigate to the OAuth consent screen page. Click EDIT APP, then follow the steps below.
  1. Choose a user type for your app and click Create. catalyst_authentication_google_social_login_apptype

  2. Provide the required information. catalyst_authentication_google_social_login_consentscrn_start

  3. In the App domain section, under the Application home page section provide your applications home page. Enter the other information as required and click Save And Continue. catalyst_authentication_google_social_login_oauthcmplt

  4. In the Scopes section, click Edit, if you wish to add or manage scopes other than the default section. catalyst_authentication_google_social_login_consentscrn

  5. Select the scopes you require from the options listed. You can also manually provide the applicable scopes in the Manually add scopes section, and click UPDATE. Click SAVE AND CONTINUE once you have configured the scopes. catalyst_authentication_google_social_login_scopes

  6. In the Summary section, confirm your configurations and click the Edit button should you need to edit any of the configuration. catalyst_authentication_google_social_login_summary

  7. Navigate back to the Credentials page and click Create Credentials. Select OAuth client ID from the drop-down list. catalyst_authentication_google_social_login_oauth

  8. Select Web application as the type of your application your app is going to be from the drop-down selection of Application type. catalyst_authentication_google_social_login_webapp

Note: Even if you host your application as an Android app, iOS, or a Flutter app, the Client ID and Client Secret to enable the social login will be the same, and can be obtained by choosing the application type as Web application.
  • Enter the name of your application. catalyst_authentication_google_social_login_names

  • Click ADD URI under Authorised JavaScript origins and Click ADD URI under Authorised redirect URIs and enter the redirect URIs of your application in the following format:

    • https://accounts.zohoportal.com/accounts/extoauth/ZAID/clientcallback

    • https://{{appdomain}}/accounts/pfs/ZAID/clientidpcallback
      This URI can be copied from the Google Social Login pop-up, and steps to enable this URI is shown in this help document:
      catalyst_authentication_google_social_zaid_configure

Note: The ZAID value can be obtained from the Google Social Login pop-up. However, to ensure that the Social Logins are enabled when you migrate your app to production, you need to reconfigure them using the Production ZAID, and the appropriate app domain.

catalyst_authentication_google_social_login_uris

Click Create, once you have added the required information.

  • You will now be directed to pop up displaying the Client ID and Client Secret. You can copy the values and download the JSON file containing the same. catalyst_authentication_google_social_login_idnscrt
  1. Now, click the Google social login present in the Catalyst console and enter the Client ID and Client Secret you copied from the Google console, and click Enable. cloud_scale_social_login_google
    Your end users can now sign up to your application using their Google credentials.

Enable Facebook Social Login

To enable Facebook sign in option in your application you need to obtain the required OAuth credentials for your application from Facebook in the following manner:

  1. Open the Facebook developer page: Meta Developer Console

  2. Log in to Facebook, and click the My Apps option. catalyst_authentication_fb_social_myapps_highlit

  3. Click on Create App catalyst_authentication_fb_login_create_app_highlit

  4. Based on your requirement, you can choose to connect your business portfolio to the meta console. Since, this is not required to configure the social login, we click the relevant option and click Next. catalyst_authentication_fb_social_login_portfolio

  5. Select the “Authenticate and request data from users with Facebook Login” and click Next. catalyst_authentication_fb_social_login_start_process

  6. Enter the required details and click Next. catalyst_authentication_fb_social_login_add_app_dets

  7. Review your configurations and click Create App. catalyst_authentication_fb_social_login_add_create_app

  8. You will now be directed to the Dashboard of the Facebook developer console. Select the “Customize adding a Facebook Login button” option. catalyst_authentication_fb_social_login_dashboard_strt

You will be directed to the Customization section of the Facebook Login. catalyst_authentication_fb_social_login_customize

  1. Click the Settings tab in the left-panel. catalyst_authentication_fb_social_login_settings_tab

  2. Scroll down to the Client OAuth Settings section. catalyst_authentication_fb_social_logi_oauth_section

  3. In the Valid OAuth Redirect URIs input field section, provide the OAuth Redirect URIs in the following format:

  • https://accounts.zohoportal.com/accounts/extoauth/ZAID/clientcallback
  • https://{{appdomain}}/accounts/pfs/ZAID/clientidpcallback

cloud_scale_social_login_facebook_configure_authorized_uri_meta

This URI can be copied from the Facebook Social Login pop-up, and steps to enable this URI is shown in this help document: cloud_scale_social_login_facebook_configure_authorized_uri

Note: The ZAID value can be obtained from the Facebook Social Login pop-up. However, to ensure that the Social Logins are enabled when you migrate your app to production, you need to reconfigure them using the Production ZAID, and the appropriate app domain.

catalyst_authentication_fb_social_login_authorizeduris

Click Save Changes.

  1. You will be directed back to the Dashboard. Now select the “Basic” option present in the App Settings section of the console, and copy and save the Client ID and Client Secret details generated by Facebook. Click Save Changes once you have completed reviewing the details. catalyst_authentication_fb_social_login_collect_id_secrt

  2. You can now enable the Facebook Social Login in the console. Click the Facebook option and paste the App ID value in the Client ID field and the App Secret value in the Client Secret field, and click Enable. cloud_scale_social_login_facebook

Your end users can will now be able to sign up to your application using their Facebook credentials.

Enable LinkedIn Social Login

To enable LinkedIn sign in option in your application you need to obtain the required OAuth credentials for your application from LinkedIn in the following manner:

Note:
  • Before you implement the following steps, ensure you have created a LinkedIn page to represent your company or organization. This page is mandatory to configure LinkedIn social login.

  • LinkedIn uses OpenID Connect protocols and not OAuth protocols. For more information on this update, visit LinkedIn’s documentation page

  1. Login to the LinkedIn developer page: http://developer.linkedin.com
  2. Click the Create App button in the center of the page. catalyst_authentication_linkein_social_login_createapp_btn
Note: You can also navigate to the My Apps section present in the taskbar and click Create App.
  1. Enter the required information, such as the app name, privacy policy URL, and the app’s logo. catalyst_authentication_linkein_social_login_createapp
Note: If you have not created a LinkedIn page for your application, you can do so now by clicking the +Create a new LinkedIn Page button.
  1. Agree to the terms and conditions and click Create app. catalyst_authentication_linkein_social_login_createapp_highlight

  2. Now verify your application by clicking the Verify button that appears next to your application’s LinkedIn page. catalyst_authentication_linkein_social_login_verify_highlight

  • Click Generate URL to generate verification URL. catalyst_authentication_linkein_social_login_url_gen

  • Complete the verification process, and click I’m done. catalyst_authentication_linkein_social_login_verification

  1. In the Settings section, add your application URL to the Domain input field of the Widgets section if necessary. catalyst_authentication_linkein_social_login_wid_adding

  2. Navigate to the Products tab, select “Sign in with LinkedIn Using OpenID Connect”, and click Request Access. catalyst_authentication_linkein_social_login_adding_openID
    Read and accept the terms and conditions, click the Request Access button to allow sign ups with LinkedIn using OpenID connect. catalyst_authentication_linkein_social_login_prompt_openId

  3. Click the Auth tab, and copy the Client ID and Client Secret present in the Authentication keys section. In the OAuth 2.0 scopes section you will be able to view three scopes have been added:

  • openid
  • profile
  • email catalyst_authentication_linkein_social_login_scope_chk
  1. Now click the Auth tab, and copy the Client ID and Client Secret present in the Authentication keys section. In the Auth 2.0 settings section add Authorized Redirection URLs of your application in the following format:

    • https://accounts.zohoportal.com/accounts/extoauth/ZAID/clientcallback
    • https://{{appdomain}}/accounts/pfs/ZAID/clientidpcallback
      This URI can be copied from the LinkedIn Social Login pop-up, and steps to enable this URI is shown in this help document:
      cloud_scale_auth_social_logins_idnscrt_linkedin_configure_zaid
Note: The ZAID value can be obtained from the LinkedIn Social Login pop-up. However, to ensure that the Social Logins are enabled when you migrate your app to production, you need to reconfigure them using the Production ZAID, and the appropriate app domain.

catalyst_authentication_linkein_social_login_idnsecrt

  1. Click the LinkedIn Social Login option present in the console, and add the Client ID and Client Secret obtained. Then, click Enable. cloud_scale_auth_social_logins_idnscrt_linkedin_enable

Your end users can now sign up to your application using their LinkedIn credentials.

Enable Microsoft 365 Social Login

To enable Microsoft 365 sign in option in your application you will need to obtain the requisite OAuth credentials for your application with Microsoft Azure in the following manner:

  1. Open Microsoft Azure and login to the console. catalyst_authentication_microsoft_social_login_loginpage

  2. Navigate to the menu section of the console and click App Registrations. catalyst_authentication_microsoft_social_login_appreg_highlight

  3. Click New Registration. catalyst_authentication_microsoft_social_login_newreg_highlight

  4. Enter the application name, choose the required permission. In the Redirect URI section, choose Web and enter the URI in the following format:
    https://{{appdomain}}/accounts/pfs/ZAID/clientidpcallback
    This URI can be copied from the Microsoft 365 Social Login pop-up, and steps to enable this URI is shown in this help document:
    cloud_scale_auth_social_logins_idnscrt_microsoft_zaid_configure

Note: The ZAID value can be obtained from the Microsoft 365 Social Login pop-up. However, to ensure that the Social Logins are enabled when you migrate your app to production, you need to reconfigure them using the Production ZAID, and the appropriate app domain.

catalyst_authentication_microsoft_social_login_register_highlight

Note: You will have to add the second URI in a later step.
  1. You will now be directed to the Overview section. Here you can copy the Application ID (Client ID).

catalyst_authentication_microsoft_social_login_clientid_highlight

  1. Click the Redirect URIs section.

catalyst_authentication_microsoft_social_login_redirect_highlight

  • In the Redirect URI section, click Add URI and add the second URI in the following format:https://accounts.zohoportal.com/accounts/extoauth/ZAID/clientcallback

catalyst_authentication_microsoft_social_login_redirecturi

Note: The ZAID value can be obtained from the Microsoft 365 Social Login pop-up. However, to ensure that the Social Logins are enabled when you migrate your app to production, you need to reconfigure them using the Production ZAID, and the appropriate app domain.
  1. Now, navigate to the Certificates & secrets section from the menu-bar, and click the Client secrets section. catalyst_authentication_microsoft_social_login_certsnsecret_highlight

  2. Click New Client Secret, to generate Client Secret. catalyst_authentication_microsoft_social_login_newsecret_highlight

  3. Enter the required details and click Add. catalyst_authentication_microsoft_social_login_secret_create_add_highlight

  4. Copy the key present under the (Value) section. catalyst_authentication_microsoft_social_login_secret_highlight

  5. Click the Microsoft 365 Social Login option present in the console and add the Client ID and Client Secret obtained and click Enable. cloud_scale_auth_social_logins_idnscrt_microsoft_enable

Last Updated 2024-10-22 16:44:11 +0530 +0530