Hello Cognigy,

just another question about sending http request to google apis using their OAuth2 process.
I've got my credentials as a JSON file that looks like that:

"type": "service_account",
"project_id": "...",
"private_key_id": "...",
"private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",
"client_email": "...",
"client_id": "...",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "..."

How these JSON fields are mapped to the OAuth2 Authentication fields of the HTTPRequest node?
When I'm creating a new Connection for that, there are fields:
- oAuth2ClientId
- oAuth2ClientSecret
- oAuth2Scope
- oAuth2Url

Only one field is clear - the Scope and it comes not from JSON, but just from google documentation and it's an URL.

Thank you for your help!




Didn't find what you were looking for?

New post
Was this post helpful?
1 out of 1 found this helpful



  • Hi Anton,

    It seems like our HTTP Request node does not support authentication with Google OAuth 2.0.

    There are several scenarios how one can authorize with Google's OAuth 2

    1. User grants access to the data in his/hers account. It can be implemented similar to our Microsoft Graph Extension + Webchat Plugin. At the moment, we don't support this out of the box.
    2. Using a Google Cloud Service Account. This does not require any consent from the user because typically no individual user data is accessed. But interaction is more complex in this server-to-server communication. I.e., Cognigy would need to encrypt data and send a GWT token to Google. Again, we don't support this out of the box at the moment, but you can implement this within an extension.

    The JSON file you shared is probably for scenario #2 as it contains a private encoding key.

    What is the use case that you are trying to support? Many Google APIs that don't access user data support authentication via API keys. E.g. Google Translation API. Maybe you don't need OAuth 2?

    Let me know if you have further questions!

  • Hi Anton,

    thank you for the 'MS Graph Extension plugin' hint! I'll have a look.
    I'm trying to talk to Google Sheets API, which (in case of write access) needs OAuth 2 and not just a simple API Key.



Please sign in to leave a comment.