OAuth flow for re-using app

I would like to understand what’s the best practice in terms of re-using an OAuth app in many monday.com accounts.
Let’s take the following use case. I have created an OAuth in “Account 1”. I have been able successfully to initiate the OAuth flow and authorize this app in “Account 1” authorization screen. I mention that this app is “Live” and published, but not submitted to the Marketplace.

Now I want to re-use OAuth app from “Account 1”, in a different account, let’s say “Account 2”. However, when I initiate the flow, instead of getting the authorization screen, I get error saying {"error":"invalid_scope"}.
Now, I have installed this app in “Account 2” via direct link from share functionality. This seems to have fixed the issue above and the authorization screen appears.

My question is, can I make this app somehow public such that other account avoid installing the app? For me, this is an extra step that I would like to avoid. Also, if installing the app cannot be avoided, do I also need to submit it to the Marketplace? or is it enough to be in a “published” state.

Thanks!

Hello there @witin77,

For you to get an OAuth token via the scopes authorization screen you mention, the app has to be installed in the account. There is no way to generate such a token if the app is not installed.

You do not need to submit the app to the marketplace if you don’t want to. You can just share your app via the “share link” with other accounts :smile:

Let me know if you have any other questions!

Cheers,
Matias

Hi there,

Thanks for your reply, this answers my question.

Cheers!

Happy to help @witin77 !!