OAUTH SMTP

Prev Next

Setting Up OAuth in Content Manager

This page will outline how to set up OAuth usage in Content Manager.

As this process is very technical, it is advised that only your company's Content Manager admin and/or IT professionals handle this process.

Prerequisites

Setting up OAuth will require configuration within the Google Cloud console before proceeding with setting up the connection in CM. Once these steps are completed, you are ready to complete the connection in the Content Manager UI.

The main URL for the cloud console is https://console.cloud.google.com/.

After selecting the correct Google account, proceed with the following prerequisites.

1. Create a Google Cloud Project

Refer to Google's documentation on Creating a Google Cloud project. If you are not using an existing Google cloud project, you must complete this task.

The steps to create a project are generally self explanatory; if you have questions feel free to contact your Scala support representative.

Google Cloud project creation page

2. Enable APIs for Your Project

Any application that uses Google APIs needs to enable those APIs in the API Console. For OAuth interaction with Content Manager, you need only to enable the Gmail API.

When sending the initial confirmation email or sending a test email, Content Manager displays an error if the Gmail API is disabled for your application.

To enable an API for your project:

  1.       Open the API Library in the Google API Console by clicking the hamburger menu icon at the top left of the screen, then clicking APIs & Services > Library.        APIs and Services menu in Google Cloud    

  2. If prompted, select your Google Cloud project.

  3. The API Library lists all available APIs, grouped by product family and popularity. If the API you want to enable isn't visible in the list, use search to find it, or click View All in the product family it belongs to.

  4.  Google API Library search results      

    For our purposes, the following permission scopes will be requested during authorization:

    • https://www.googleapis.com/auth/gmail.send: Allows sending mail

    • https://www.googleapis.com/auth/userinfo.email: Allows us to obtain the email address used to connect.

  5.       Select the API(s) to enable, then click the Enable button.        Enable the Gmail API    

  6. If prompted, read and accept the API's Terms of Service.

3. Configure Google OAuth Platform

If this project hasn’t previously been configured to use OAuth, you must enter some basic details first. Click Get Started to enter the info.

Google OAuth overview page with Get Started button

Define the following information in the getting started wizard:

  1. App Information section      

    1. App Name: Enter a unique name for the application; Content Manager does not require anything in particular.

    2. User support email: Enter the email address that should be contacted if support requested. This is likely the email of the Google user the application currently belongs to.

  2. Audience section      

    • Select Internal.

     Select Internal as the Google OAuth audience    

  3. Contact Information section      

    • Email: This is the contact email that Google will use for general communication (e.g. 30 days before 6 month expiry of the OAuth credentials).

  4. Agree to the Google API policies.

4. Create Client and Obtain Authorization Credentials

Any application that uses OAuth 2.0 to access Google APIs must have authorization credentials that identify the application to Google's OAuth 2.0 server. The following steps detail creating credentials for your project. Your applications can then use the credentials to access APIs enabled within that project.

  1. Go to the Clients page.

  2.       Click Create Client.        Create Client button    

  3.       In the Application type field, select Web application.        Web application client configuration    

  4. Enter a name.

  5.       Within Content Manager, click the Copy button next to the Redirect URI from the Network Settings > Mail Server Settings tab. This is unique to your company's environment.        Copy the Redirect URI in Content Manager    

  6. Paste it in the Redirect URI field on the Google page.

  7.       Click Create and the client ID and client secret will be provided. The user is then ready to complete the connection to CM using these credentials.        Google OAuth client ID and client secret    

5. Adding the OAuth to Content Manager

  1.       Within Content Manager, click the Add OAuth button on the Network Settings > Mail Server Settings tab. The Add OAuth Connection popup displays.        Add OAuth Connection popup in Content Manager    

  2.       Enter the Client ID and the Client Secret, then click the Connect button. The following message displays.        Google account selection message    

  3.       Select the account you are using, then the following message displays if you set up a privacy policy or terms and conditions (optional) in the Google app client (skip step 3 if the message does not display).        Optional Google app privacy policy message    

  4.       Click Continue. The following message displays.        Google OAuth permission request    

  5. Click Allow. This will display a message stating that the OAuth connection was successful. If there were issues with setup or you need to remove the OAuth connection, you can click the Remove OAuth button on the Network Settings > Mail Server Settings tab to remove the connection from CM at any time.