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?
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:
The user click on connect and is redirected to the OAuth Authorization page (in monday)
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:
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.
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