Skip to content

Github app setup URL security warning unclear #37268

@matt-allan

Description

@matt-allan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamgithub appsContent related to GitHub Appsneeds SMEThis proposal needs review from a subject matter expert

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions