Will the Oauth Client in Pipedream No Longer Work for Development and Production Mode Without Google Business API Access?

This topic was automatically generated from Slack. You can find the original thread here.

Hi , I’m getting the same error as @U046GMDKAMQ. It was working fine till then.

Just to clarify, the Oauth client that I created inside pipedream will not work anymore for development nor production mode, right?

And if I don’t have access to google business api in my account I’ll not be able to use these workflows anymore?

In order to invoke workflows on behalf of your end users via Connect, any connected accounts must be using a custom OAuth client, and not Pipedream’s, independent of the environment. Here’s some more info in the docs: GitHub

The change we shipped yesterday was to disallow using Pipedream OAuth that way in development mode (it never worked in production). We heard over and over from devs that it was just confusing that something worked one way in development, then differently when you shipped to production, which makes total sense.

Ok, got it. But if I don’t have access for google my business api in my google account I won’t be able to use the workflow? I’m asking because this api is not so easy to enable. Google needs to authorize it and it didn’t for me.

Yea that’s unfortunately challenging for certain APIs, especially certain Google APIs

You are able to use Pipedream’s OAuth if you invoke our triggers and actions via API / SDK outside of a workflow. The core concern we are protecting against is being able to export the actual user credentials when using our OAuth client.

Ok. That’s pretty bad news.

Unfortunately, it will make a good part of the project and my use of Pipedream unfeasible. I was testing Pipedream precisely because I had not received authorization from Google to enable the Google My Business API.

Thanks for your attention.

Can you run the individual actions that you need outside of a workflow? I know it’s a bit of a counter intuitive suggestion, but just thinking about possible solutions for you

Sorry, what do you mean outside of a workflow?

Running directly from my api?

Exactly: GitHub

Got it. Basically my users would use the workflow directly from my app, right?

Yea potentially — can you tell me more about your app?

I need to better understand this option and evaluate whether it’s feasible. The goal is to provide users with the easiest possible experience when analyzing their Google My Business data — especially their location reviews.

, I already have this oAuth Client (fig below) created in pipedream. If I create an external OAuth Client, like in Google Cloud For example, how would I use it or configure it inside the workflows?

Thanks, I’ll try it

I’m always getting the same error after trying to connect an account. Any idea?

I saw some exceptions for you from the Google Business Profile app:

{
  "error": {
    "code": 429,
    "message": "Quota exceeded for quota metric 'Requests' and limit 'Requests per minute' of service 'mybusinessaccountmanagement.googleapis.com' for consumer 'project_number:632731281384'.",
    "status": "RESOURCE_EXHAUSTED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "RATE_LIMIT_EXCEEDED",
        "domain": "googleapis.com",
        "metadata": {
          "quota_limit": "DefaultRequestsPerMinutePerProject",
          "quota_unit": "1/min/{project}",
          "quota_metric": "mybusinessaccountmanagement.googleapis.com/default_requests",
          "service": "mybusinessaccountmanagement.googleapis.com",
          "consumer": "projects/632731281384",
          "quota_location": "global",
          "quota_limit_value": "0"
        }
      },
      {
        "@type": "type.googleapis.com/google.rpc.Help",
        "links": [
          {
            "description": "Request a higher quota limit.",
            "url": "https://cloud.google.com/docs/quotas/help/request_increase"
          }
        ]
      }
    ]
  }
}

Note that you can consume account connection errors via webhook: GitHub