Configuring Google OAuth account in Software AG webMethods.io Integration Workflow
Tags: google, oauth, integration, tutorial
Published: 2021-09-10 08:49:54

---
title: Configuring Google OAuth account in Software AG webMethods.io Integration Workflow
published: true
date: 2021-07-15 09:08:00 UTC
tags: #google, #oauth, #integration, #tutorial
canonical_url: https://tech.forums.softwareag.com/t/configuring-google-oauth-account-in-webmethods-io-integration-workflow/242841
---

## Summary:

This article describes configuring an OAuth account to **Google Pub/Sub** in **[webMethods.io](http://webMethods.io) Workflow**

## Pre-requisites:

• User needs to have a **Google** account  
  
• Working **[webMethods.io](http://webMethods.io) Integration** tenant

## Contents:

Section 1: [Configure a **Google** OAuth](./Configure a **Google** OAuth)   
  
Section 2: Setting up a **Google** OAuth account in **[webMethods.io](http://webMethods.io) Integration** tenant

### Section 1. Configure a Google OAuth   

1. Login to [Google Console](https://console.cloud.google.com) with the username and password
2. From the projects list, select a project from the dropdown or create a new one if required
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/d/a/da740c82878055aec4a14c60e1d5d8a5de919b47_2_690x170.png)
3. To use **Google Cloud API** , user must enable an **Google Cloud Pub/Sub API** for a project using console
i. On the left, click on **Navigation Menu**
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/a/6a8d5dd77e674956ff84ef90aa3c98eadadb725a_2_690x191.png)
ii. Under **APIs & Services** choose **Library** , select the API and **enable** it.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/5/f/5f456c278259237e8bf2dedfc06b74855c9f54d3_2_690x426.png)
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/c/b/cbd321df17ecf47f7bdc758ac8870292798e4a5b_2_690x267.png)
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/0/9/0986b3ea514eb981c6d8b8d0b63137149e9ba06e_2_690x332.png)
4. If the APIs & services page isn’t already open, open the console left side menu and select **APIs & Services**
5. On the left, click **Credentials**
6. Click **+ Create Credentials** , then select **OAuth client ID**
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/3/4/346a8882d42a0cd936a03f267fda3f3e14b6e39e_2_690x317.png)
7. Users setting up **Google Cloud Console** for the first time, they need to configure the **Consent Screen** to get the **Client ID** click **Configure Consent Screen**.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/3/4/346a8882d42a0cd936a03f267fda3f3e14b6e39e_2_690x317.png)
8. In the next screen choose the user type as **External** click **Create**.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/6/d/6dfdd4a760b4dcae2b0572dc80acf87f2eac0c67_2_690x390.png)
9. Next screen will show for **Edit app registration** , provide the **App name** & **User support email**.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/b/b/bbe25b6be26f3b51ee37334f83343eaff72b7ba8_2_690x496.png)
10. Provide the details for **Application home page** & **Authorized domains**.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/1/4/142fd7e451a50efe29554d8dedd1ce20aad624c2_2_690x496.png)
11. Provide the details for **Developer contact information** & click **Save and continue**.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/d/7/d74cc3ff2e254d543e2f8cf71484f28f2f8d8244_2_690x145.png)
12. Next screen will show for configuring the **Scopes** , click on **Add or remove scopes** then select the \*\* API Check box\*\* & click **Update**.
9i8wrqcvgng
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/8/5/85e6b99a39206e6d2ce95c9d6f3d610ce30ad774_2_690x380.png)
13. Click **Add Users** to add some extra users for the app & click **Save & Continue**.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/4/1/41e386c4ba2bfcd7ba23839f9a92b637569726af_2_620x500.png)
14. Review the **Summery** section, then click **Back to Dashboard**. Now we have successfully configured the **Consent Screen**.
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/c/ac261c2d55f59cbcb8e0095ca558b29074e2c3a1_2_690x460.png)
15. Click **+Create Credentials** again & Select the appropriate application type (In this case application type is **web application** ) for your project and enter any  
additional information required
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/d/a/da7cf2bb401f27cbc651a7827920fed3ac5bf5ac_2_690x443.png)
16. Select **Authorized redirect URI’s** and add the redirect URI as [OAuth 2.0 Playground](https://developers.google.com/oauthplayground) and hit  
**Create**
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/0/8/080e0d97a02b80eea75730d62cc8cb63d72ce1c0_2_551x500.png)
17. Note down the **Client Id** and **Client Secret** created  
w2as
18. Open the browser and point the browser to [Google Oauth Playground](https://developers.google.com/oauthplayground)
19. On the right corner of the page, click on gear icon and fill in OAuth Client ID and OAuth Client Secret generated  
(from Step 8) and click on Close
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/5/c/5c7bacf7e5b6a4a8a52ff9b087cdc4cd4b6bc11f_2_690x333.png)
20. On left side panel, select the scopes required
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/8/4/8498e1d3a7aae01b03add59d5597a2de796a5c19_2_570x499.png)
21. Hit on **Authorize APIs**
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/1/4/14494778a61fb7b3a50fd7c01fa4dcef5709ef32_2_380x500.png)
22. Click on **Exchange authorization code for tokens**
![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/9/d/9dac6b5d1e00c08203de3a63bb6d577da717a147.png)
23. Note down **Access Token** and **Refresh Token**
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/9/a95f9c10335ef6fcd41fb7bfdb013177b5d1a3d6_2_690x286.png)

### Section 2: Setting up Google OAuth account in [webMethods.io](http://webMethods.io) Integration Workflow  

1. Login to **[webMethods.io](http://webMethods.io) Integration** tenant and choose your project or click on **“+”** to create new project
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/5/8/5812c5113b2a5d018b461dc4cc9bd485c5a84bc6_2_690x377.png)
2. Choose your workflow or click on **“+”** to create new workflow
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/2/0/205b57f6d6ac26e9c29d26ded0d674c366d2d3e8_2_690x366.png)
3. From the right-hand panel of connectors list. Drag and drop a **Google Cloud PubSub Connector**
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/5/1/5138824a02f77f6be7a7d75ee8c76ef884ff0522_2_690x388.jpeg)
4. Click on gear icon on the connector and choose any predefined operation (Example: listTopics) and click on **“+”** to  
add account
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/1/3/13f54c3fddf5bb1bfb760720eb9d59bf3013a201_2_690x476.png)
5. Fill in the **Client Id** , **Client Secret** obtained from Step 8 and **Access Token** , **Refresh Token** obtained from Step 14
Refresh URL: [https://www.googleapis.com/oauth2/v4/token](https://www.googleapis.com/oauth2/v4/token)   
Grant\_type : refresh\_token
[![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/0/1/014d0292d8482e458129d8472d80c23021223755_2_366x500.png)
6. Click on **Add** and Hit **Next** and pass the required inputs (In this case “listTopics” requires projectId to be passed)
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/7/a776d0d578c4104cf2d93b7603fdd9b6ef25c673_2_690x370.png)
7. Click on **Save** and **Run** the workflow
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/3/2/321ede3c338f792f9b50915ce062a5211459cb82_2_690x238.png)
![image](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/a/8/a8ad3dbd1d21abd6352670532181ea24120bfd73_2_690x231.png)

[Read full topic](https://tech.forums.softwareag.com/t/configuring-google-oauth-account-in-webmethods-io-integration-workflow/242841)