How To Setup Google OAuth With Smartlead

Learn how to set up Google OAuth with Smartlead to streamline authentication and enhance security.

Integrating Google OAuth with Smartlead is essential for enabling advanced functionalities such as Gmail API access, which allows Smartlead to interact with users' Gmail accounts.

By setting up OAuth, you authorize Smartlead to securely access Gmail data without sharing sensitive login credentials, ensuring a safe and seamless user experience.

How To Setup Google OAuth With Smartlead?

Here’s a video to help you walk through the steps of setting up Google OAuth with Smartlead:

Here’s an explanation of the steps covered in the above video:

1. Create a Google Cloud Project

  • Go to the Google Cloud Console.

  • Click on "Select a Project" at the top of the page, then click "New Project".

  • Enter a name for your project and click Create.

2. Enable Gmail API

  • Once the project is created, navigate to API & Services from the left sidebar.

  • In the API Library, search for "Gmail API".

  • If the Gmail API is not enabled, click Enable. If it's already enabled, click Manage to view your current API status.

3. Create OAuth Credentials

  • After enabling the Gmail API, go to the Credentials section in the left sidebar.

  • Click Create Credentials, and select OAuth Client ID.

4. Configure OAuth Consent Screen

  • You will be prompted to configure the OAuth Consent Screen. Click on Configure Consent Screen.

  • Fill out the following information:

    • App Name: Enter the name of your app.

    • Support Email: Provide a valid email address for support.

    • App Logo: (Optional) Upload a logo for your app.

  • Click Save once you have filled out these details.

5. Add Authorized Domains

  • In the OAuth Consent Screen settings, under Authorized Domains, add the following:

    • Smartlead.ai (for Smartlead).

    • If you're using a White-label domain, also add the app's URL.

  • Add the developer's email address under the Developer Contact Information section.

  • Click Save once done.

6. Set Up OAuth Client ID

  • Navigate to the Client ID section under Credentials.

  • Add the following Authorized JavaScript Origins:

  • Add the Authorized Redirect URI as:

  • Click Create to generate the OAuth credentials.

7. Set Scopes for Data Access

  • Navigate to the Data Access section.

  • Add the necessary OAuth scopes to grant the appropriate access. This will include:

    • Sensitive Scopes (such as Gmail access).

    • Non-Sensitive Scopes (such as user profile info).

  • After adding the required scopes, click Update.

8. Save and Finalize Configuration

  • Once all the settings are configured and saved, your OAuth credentials will be ready for use.

  • Copy the Client ID and Client Secret provided by Google, as you'll need these when integrating with Smartlead.

After completing these steps, the Google OAuth integration with Smartlead will be ready for use. This setup allows seamless access to Gmail data and smooth integration with Smartlead’s features. Make sure to keep your credentials secure and only share them with trusted applications.


Did this answer your question?
😞
😐
😁