Configuring Google OAuth for Wizlink
To use Google Authentification and log in to a Gmail account with Wizlink, you need to complete the following steps:
- Create a Google Cloud Application
- Input Application ID and Client Secret in Wizlink's email Activity
- Authorize Wizlink to use the current profile
1. Create a Google Cloud Application
Log in to https://console.cloud.google.com/ and locate the current projects tab.
![gOauth1 gOauth1](https://docs-2.wizlink.eu/wp-content/uploads/2024/05/gOauth1.png)
Create a new project by clicking on the New Project button.
![gOauth2 gOauth2](https://docs-2.wizlink.eu/wp-content/uploads/2024/05/gOauth2.png)
In the new project's window fill in the Project Name, Organization and Location fields, then click on the Create button.
Organization and Location have to match the email account you want to use with Wizlink.
![gOauth3 gOauth3](https://docs-2.wizlink.eu/wp-content/uploads/2024/05/gOauth3.png)
Choose the newly created project from the list of current projects to go to its main page. Choose the APIs & Services tab, usually located in the Quick access section.
![gOauth4 gOauth4](https://docs-2.wizlink.eu/wp-content/uploads/2024/05/gOauth4.png)
(If the option is not visible, it can be accessed from the sidebar menu.)
![gOauth5 gOauth5](https://docs-2.wizlink.eu/wp-content/uploads/2024/05/gOauth5.png)
In the APIs & Services locate the OAuth consent screen and Credentials tabs.
For OAuth consent screen choose Internal and click Create
Fill out the required fields (App name, User support email and Developer contact information) then confirm with Save and continue.
Do not add anything in Scopes, just confirm again.
![gOauth6 gOauth6](https://docs-2.wizlink.eu/wp-content/uploads/2024/05/gOauth6.png)
For Credentials add a new credential with Create credentials and choose the OAuth client ID option.
![gOauth7 gOauth7](https://docs-2.wizlink.eu/wp-content/uploads/2024/05/gOauth7.png)
Fill out the Name field and specify Desktop app for Application type, then click Create.
![gOauth8 gOauth8](https://docs-2.wizlink.eu/wp-content/uploads/2024/07/gOauth8.png)
A window will appear with Client ID and Client Secret numbers. The values will need to be copied over to Wizlink activity.
![gOauth9 gOauth9](https://docs-2.wizlink.eu/wp-content/uploads/2024/07/gOauth9.png)
2. Filling out activity parameters
All Wizlink Email activities contain an OAuth section.
Check the Use OAuth checkbox, set the Provider to Google and fill out the Application (Client) ID and Client Secret fields with data copied over from the newly created application.
Note that the Tenant ID field should remain blank.
![gOauth10 gOauth10](https://docs-2.wizlink.eu/wp-content/uploads/2024/07/gOauth10.png)
3. First-time authentication
The first time robot will attempt to log in to the email address, the operation will need to be authorized.
After the first log-in attempt a browser window will open asking for login and password. Log in to the Google account you want Wizlink to access and confirm the application is allowed to do that.
![gOauth11 gOauth11](https://docs-2.wizlink.eu/wp-content/uploads/2024/07/gOauth11.png)
The process will need to be repeated for every email address the robot is to log in to.