Skip to main content
Question

Dheeraj Sudan and Meenu Hinduja-How do I fix OAuth token authentication errors when connecting tools like GA4 or APIs?

  • April 20, 2026
  • 1 reply
  • 29 views

mhindujadheerajsudan

Hi Everyone, I am Dheeraj Sudan , a UK-based software developer. I’m running into OAuth token authentication errors when trying to connect GA4 and a few APIs through CData. I’ve double-checked my client ID, secret, and redirect URIs, but the connection still fails. Has anyone experienced this before? Any tips or steps to troubleshoot and fix these authentication issues would be greatly appreciated!

 

Regards

Dheeraj Sudan and Meenu Hinduja 

1 reply

PratikV
Forum|alt.badge.img
  • Employee
  • April 28, 2026

Hi ​@mhindujadheerajsudan ,

Thanks for reaching out to us.

To look into the OAuth authentication error you are experiencing with GA4 in Connect AI, it would be helpful if you could share the following details:

1. The exact error message or a screenshot of the error you are seeing — this will allow us to pinpoint where the OAuth flow is failing.
2. The Connect AI account you are working with (the email address linked to it).
3. You also mentioned that a few other APIs are running into issues — could you let us know which specific data sources or APIs are affected? This will help us determine whether the problem is limited to GA4 or something more general.

In the meantime, since you are using your own client credentials, please verify the following:

  • - In the Google Cloud Console, check that the Authorized Redirect URI is set to exactly https://oauth.cdata.com/oauth — even a minor difference like a trailing slash or an extra space can cause the authentication to fail.
    - Ensure that the OAuthClientId and OAuthClientSecret values entered in Connect AI are an exact match with what is shown in the Google Cloud Console — watch out for any leading or trailing spaces when copying them over.
    - Ensure you have enabled appropriate API acces

The documentation link for the same is as follows: https://cdn.cdata.com/help/DAM/cloud/default.htm#pg_oauthcustomappcreate
https://cdn.cdata.com/help/DAM/cloud/default.htm#RSBGoogleAnalytics_c_OAuth