I currently have an oauth app that is working for regular user. The app works great: users can log in on my application using oauth and I can then query the API using the oauth token. And I can also checkout repository using the oauth token.
Now, I want to be able to make my app available for an entire organization. However, an organization cannot log in via the oauth login. And an organization account does not have an oauth token. And I am using this to clone a repository and query the API.
Also, I need to get the list of the organization members and I do not have that information when users purchase the application on the marketplace.
My questions are then:
how can I get the list of members when users buy the application on the marketplace?
what would be my options to clone repository from the organization if I do not have an oauth token for the organization?
Is there any user that built an oauth app in the marketplace that has insight about this? That would be very helpful.