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.

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:
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.
If prompted, select your Google Cloud project.
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.
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.
Select the API(s) to enable, then click the Enable button.
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.

Define the following information in the getting started wizard:
App Information section
App Name: Enter a unique name for the application; Content Manager does not require anything in particular.
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.
Audience section
Select Internal.
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).
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.
Go to the Clients page.
Click Create Client.
In the Application type field, select Web application.
Enter a name.
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.
Paste it in the Redirect URI field on the Google page.
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.
5. Adding the OAuth to Content Manager
Within Content Manager, click the Add OAuth button on the Network Settings > Mail Server Settings tab. The Add OAuth Connection popup displays.
Enter the Client ID and the Client Secret, then click the Connect button. The following message displays.
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).
Click Continue. The following message displays.
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.