How to configure Google OAuth for Mail Integration
Google OAuth is a safe and secure way to connect Mail Integration to Google Workspace/Gmail account.
To configure Google OAuth for Mail Integration:
- Open https://console.developers.google.com/, click on the list of the projects in the top bar and
choose New project in the pop-up.

Enter a project name. For example, Email Integration.

- Go to OAuth consent screen. Select the type of application you'd like to
create. GSuite users can create both Internal and
External applications while ordinary Gmail users can create only
External application.

Enter the name of the product in the field Application name and save it. It is possible to use the same name as your Project —Email Integration. It will be displayed on the list of apps that have granted permissions to use google account.

- Open Credentials tab and click +Create
Credentials to add OAuth client ID
. - Choose Application type as Web application, set random name for this
client ID and configure Authorized redirect URI in
as
https://{account}.tpondemand.com/Admin/Plugins.aspxwhere {account}.tpondemand.com is your Targetprocess URL.

- After creating an OAuth client ID, you will receive Client IDand Client Secret.
These values will be used in place of traditional credentials on the Targetprocess side. Save them
securely, as they will be required for authentication and authorization purposes.

- Open your Targetprocess account and go to Settings > Integrations > Mail Integration. You can create a new one or use the existing profile.
- In the configuration, choose Google OAuth in Secure access method drop-down.
- Enter the Client ID and Client Secret values obtained in the 7th step into the
required fields.

- Click Sign in and select between three options:
- No prompt: This option will not display any authentication screen and will return an error if the user is not already authenticated and has not pre-configured consent for the requested scopes.
- Consent: The authorization server prompts the user for consent before returning information to the client.
- Select account: This option enables a user with multiple accounts to select from the accounts they are currently logged into.

- Click Sign in. The authorization server will prompt the user for consent
before returning information to the client.Note:
If we have created External application on step 2 we might get error "This app isn't verified" during sign in. In this case we need to click "Advanced" and "Go to tpondemand.com (unsafe)"
Your Mail Integration is connected to the mailbox using Google OAuth.