Oauth SMTP Google
Create a project
From your Google console (administrator access required), go to your
organizationand then selectNew Project.

Enter your project name
Click
Create

Return to your organization, Select your project

Configuring OAuth access
In the menu, click on
APIs & ServicesThen click on the
OAuth Consent Screen.

Overview
In the
Overviewtab, clickGet Started.Enter the application information.

Audience
The next tab takes you to the Audience section and allows you to specify who this application is intended for:
Internal: only users within the organization
External: anyone with a Google account

Contact information
Any changes to the created application will be sent to the contact identified in this section.

Google API Services Privacy Policy
Accept the privacy policy and click Continue.

Clients
Creating the client will allow you to specify the redirection URL(s) (identified as callback in GLPI) as well as the client secret.
Information
Specify the application type Web Application and the client name.

URI de redirection autorisés
L'URL de retour devra être indiquée dans cette partie. Cette URL est indiquée dans GLPI dans la section Configuration > Notifications > Configuration des notifications par email


Secret Client
The information on the next screen will need to be entered in GLPI Setup> Notifications > Email Notification Configuration

Select Google in the OAuth Provider section. Enter the Client ID and Client Secret.

Finalizing the configuration in GLPI
Enter the information below in GLPI to finalize the configuration:
Hôte SMTP
smtp.gmail.com
Port
587
Email sender
If empty, the value will be the sender's email address. If the value is different from the sender's email address, the configuration will fail; the two values must be identical.

Click
Save.
You will be asked for a Gmail account, and then you will need to grant the necessary permissions.

Last updated
