Check authorization response

Hi there,

I am trying to find a way to catch one specific authorization error.
When the app is not installed but the authorization is requested, we get the following response:
“{“error”:“invalid_scope”,“error_description”:“Invalid scope param”}”

Is there a way of checking for this error (e.g curl), before redirecting to monday.com?

Hello there @andrei_mg and welcome to the community!

Just to be sure, is the question if there is a way for you to know if the app is installed in the account before the user clicks on “Authorize”?

Hi Matias,

Exactly. There are no actual scope-related issues.

@andrei_mg and what would the expected process be?

Something like:

  1. User gets redirected to the Authorization page
  2. monday checks if the app is installed
  3. if it is not installed, it shows a message asking the user to install?

Also, how are you getting the user to the OAuth Authorization screen? What is the flow that leads to that screen?

Looking forward to hearing from you!

Cheers,
Matias

The app is created with the required scopes.
Since the app is not listed in the marketplace, users must install it before authorizing the integration.

The flow would be:

  1. The user click on connect and is redirected to the OAuth Authorization page (in monday)
  2. If the app is installed, the user just approves the scopes and is redirected back (the expected behavior and it is fine). If the app is not installed, the user gets the above error, a JSON response. We have to post the installation URL and ask them to use it first.
    Obs.: Users tend to forget and ask why they get that error. That is why we need the third step:
  3. Request the OAuth Authorization and check the status code, I presume. If we get an error response, we will provide them a message to install the app.

Thank you @andrei_mg for the explanation!

As of today that is not possible, but I have turned this into a feature request that other users can vote for and that our team will have visibility into :smile:

1 Like