Auth flow should ask user to install Github app before authorization


#1

When a user clicks on authorization link for a github app . if the app is not installed there is no use of that authorization as the github app cant access user data .

Auth flow should ask user to install Github App (if not done already ) and then only proceed with authorization .

So that data will be available to the github app .

Refer this for more understanding .
https://developer.github.com/apps/building-integrations/setting-up-and-registering-github-apps/identifying-users-for-github-apps/


#2

Thanks for the input @viveknimkarde

if the app is not installed there is no use of that authorization as the github app cant access user data

When a user is authorized via a GitHub App, the requests are not scoped to a specific installation, they are scoped to all the installations of the GitHub App that this user has access to.

We can’t know which installations the user has access to until the user has authenticated. They might install the app before authenticating, or they might not. If it’s important for the user experience of your app that they install the app somewhere first, then I would suggest tweaking your site to help ensure that this happens.