Google Oauth Configuration
Create an OAuth Client in Deepser for Mailbox
In the Deepser Configuration, navigate to System > Tools > OAuth > Client > Add Client:
Enter a name, define the type as Mailbox, set the provider as Google and save.
Once the client has been saved in Deepser and the generated redirect URL has been copied, you can proceed with the configuration on Google Cloud. If your Google project is already set up, you can skip the initial configuration and go directly to the section for creating OAuth Client ID credentials.
Go to the Google Cloud Platform, and log in. Once this is done, click on the menu at the top where all the projects are listed.
A window will open where you can create a new project using the New Project button. All you have to do is give your new project a name and click on the Create button.
To enter the newly created project, repeat the process above: click on the menu that groups all the projects and click on the name of the newly created project to start the configuration.
Once you have entered the project, click on the APIs & Services > OAuth Consent Screen section in the menu on the left.
Click on ‘Start’ to begin the configuration process.
Give the application a name, enter the email used for access in User Support Email and in Developer Contact Information. Proceed to Save & Continue.
In Public select External and proceed to the next step.
In the Contact Details the email address with which you logged in to the platform.
Finally, accept the policies and click on ‘Create’.
Under Data Access, press the Add or Remove Scopes button.
In the form located below the Add Manually section, copy and paste the following address: https://mail.google.com/. Next, click Add to Table, then click Update. Finally, click Save and Continue to proceed.
Configuring OAuth Client ID Credentials
Once inside the Credentials section of your Google Cloud project, you can begin configuring the OAuth Client ID. This step allows you to define the application type, set the redirect URI generated in Deepser, and obtain the necessary credentials to complete the integration.
Click on ‘Create Credentials’ and select ‘OAuth Client ID’ from the available options.
Select in the application type Web Application, give it a name, and under Authorized Redirect URIs, paste the URI that you previously generated and copied. Finally, click Create button.
The Client ID and Client Secret will be generated and copied and entered into the respective fields of the OAuth Client previously started to configure in Deepser.
Once saved, proceed with the Client Validation by clicking on the Validate button.
Then log in and click Continue.
Tick the boxes regarding the read/write permission of Google Mail and click Continue.
If all the steps have been carried out correctly, the Oauth Client will be validated and active.