-
Notifications
You must be signed in to change notification settings - Fork 64.9k
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/about-the-setup-url
What part(s) of the article would you like to see updated?
The docs for the setup URL state that I need to use the user's access token to verify the installation_id:
Instead, you should generate a user access token for the user who installed the GitHub App and then check that the installation is associated with that user
However, if I check "Request user authorization" I am not allowed to enter a setup URL, as per this page.
According to this page, I need to use a setup URL if I am building a marketplace app.
So how should I verify the installation_id if I can't request user authorization?
I gathered from this page that I should immediately send them through the authorization flow. Is the idea that I keep track of the installation_id in the user's session, wait for them to come back from the authorization flow, and then check it against /user/installations when they come back?
Additional information
No response