Prerequisites for Gmail OAuth 2.0 Configuration

Before configuring an e-mail server with Workflow to use GMail OAuth 2.0 authentication, these steps must be followed by your e-mail administrator.

Prerequisite configuration of Workflow

Refer to Workflow Web Service Configuration.

Note: Web application directory is required to be configured as https with the fully qualified domain name of your machine if Gmail OAuth 2.0 or SharePoint using OAuth is configured in an external object.

Configure on Google Cloud Console

  1. Go to the Google Cloud Platform Console.

  2. From the projects list, select a project or create a new one.

  3. Enable Gmail API in the created Google project. You can follow Google Online help instructions for detailed steps about how to enable an API.

  4. Create a new Credential in the created Google project. You can follow Google Online Help instructions for detailed steps about how to create a credential.

    1. Select Credential Type as OAuth client ID.

    2. Select Application Type as Web application.

    3. Enter Name for the credential.

    4. Specify Authorized redirect URIs as Workflow Web Service URL with callback path segment: https://{Fully Qualified Domain Name (FQDN)}/Workflow/oauthconnection/callback (Note: This is case sensitive.)

    5. After creating the credential, keep a record of your Client ID and Client secret.

      • Client ID: This will be used as Application (client) ID in Workflow.

      • Client secret: This will be used as Client secret in Workflow.

  5. Create and configure the OAuth consent screen in the created Google project. You can follow Google Online help instructions for detailed steps.

    1. Set User Type to External.

    2. Add required information like app name and support email address.

    3. Skip setting of Scopes.

    4. Set Publishing status to In Production. Publish the app if publishing status is Testing.