Configure Sign-in Method

Next, let’s configure Google and Zoho sign-in providers for the application.

Click the Sign-in Method tab in Authentication.

catalyst_authenticationapp_signin

Catalyst provides a ready-to-use script to enable user authentication in a sign-in form, which you can incorporate in your application’s login page. You can learn about this code in detail from the Sign-in Method help page.

Note: This tutorial provides the code for the sign-in form in the Configure Client section. We will not be copying the code from the console.

Perform the following actions to enable Zoho and Google sign-in providers in the Authentication app:

Zoho

To enable Zoho sign-in, you must provide a client name for your application’s OAuth client ID. Since the application will be hosted in Catalyst, you need not setup OAuth with Zoho.

  1. Click the toggle switch for Zoho.

  2. Enter ‘userApp’ as the client name for your application and click Save.

    catalyst_authenticationapp_enable_zoho

Note: We will be using the same name for the client component when we initialize it from the CLI. Therefore, provide the same name as instructed.

Zoho sign-in is now enabled for Authentication app.

Google:

To enable Google sign-in in your application, you must provide the client ID and client secret of your Oauth credentials with Google. Therefore, before you enable Google sign-in, you must obtain OAuth credentials for your application with Google in the following manner:

  1. Open the Google API Console Credentials page.

  2. Click the project drop-down in the console, and then click NEW PROJECT. If you had already created a project in Google developer console for your application, select your existing project. Skip the next step for an existing project.

  3. Enter a name for the project in the New Project section. If required, edit the provided project ID. Select a parent folder, if relevant. Click Create.

  4. After the project has been created, navigate to the Credentials page.

Note: Ensure that you have selected the right project from the drop-down list.
  1. You will be asked to configure the OAuth consent screen with your application details, if it is a new project. Click Configure consent screen.
Note: If this is not a new project, you must still 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.

  2. Provide ‘userApp’ as the application name, and other application information you require in the OAuth Consent Screen.

  3. Under Authorized Domains, enter this value: zohoportal.com and press Enter to add it.

  4. Under Application Homepage Link, enter this value: https://accounts.zohoportal.com/accounts/extoauth/ZAID/clientcallback . Obtain the ZAID of your project from the Environments settings and substitute it here in the URL in place of ZAID.

  5. Provide other relevant information, if required. Click Save.

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

  7. Select Web application as the Application type in the Create OAuth client ID page.

  8. Enter ‘userApp’ as the name for your application’s web client.

  9. Enter this value as an Authorized Redirect URI: https://accounts.zohoportal.com/accounts/extoauth/ZAID/clientcallback. Replace the value of ZAID with the ZAID of your project.

  10. Click Create.

The API console will open a pop-up window with the Google client ID and client secret for your application. Copy these values.


You can now enable Google sign-in provider in the console in the following way:

  1. Click the toggle switch for Google.
    catalyst_authenticationapp_enable_google_1

  2. Enter the client ID and client secret that you copied, and click Save.
    catalyst_authenticationapp_enable_google_2

Google sign-in is also now enabled for Authentication app.

catalyst_authenticationapp_signin_enabled

Last Updated 2023-05-10 13:52:27 +0530 +0530

RELATED LINKS

Sign-In Method