ThingWorx Extensibility > Extensions > Mail > Google OAuth 2.0 Setup and Configuration for ThingWorx Mail Integration
Google OAuth 2.0 Setup and Configuration for ThingWorx Mail Integration
Using OAuth 2.0 for Google Workspace mail requires setup within the workspace before it can be configured in ThingWorx.
OAuth 2.0 support in the Mail extension uses a service account within Google to allow for unattended authentication. The access required for the service account is only available in Workspace; ThingWorx cannot use OAuth for consumer Gmail accounts. Use an app password instead.
* 
For detailed configuration of OAuth with Azure and Google, refer to the respective Google and Azure documentation. Configurations are customer-specific.
Initial Setup for Google Workspace
1. Create a Project in the Google Cloud Console.
2. Create a Service Account.
3. Add a Key Pair for Authentication.
4. Enable Domain-wide Delegation.
Configure ThingWorx Mail Entity
1. POP Server— pop.gmail.com, port 995, use SSL
2. SMTP Server— smtp.gmail.com, port 465, use SSL
3. Select Use OAuth 2.0
4. Provider—google
5. Client ID—Client ID or Unique ID of Service Account
6. Issuer—Email address of Service Account
7. Subject—Email address to send from
8. Client Certificate—PEM-formatted certificate
9. Certificate Key—PEM-formatted private key
Was this helpful?