Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com> Co-authored-by: isaacmbrown <isaacmbrown@github.com>
3.9 KiB
title, intro, versions, shortTitle, redirect_from
| title | intro | versions | shortTitle | redirect_from | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Sharing your GitHub App | You can share your {% data variables.product.prodname_github_app %} with other users. |
|
Share your app |
|
{% ifversion fpt or ghec %}
Sharing your {% data variables.product.prodname_github_app %} on {% data variables.product.prodname_marketplace %}
If your {% data variables.product.prodname_github_app %} is public, you can choose to publish it to {% data variables.product.prodname_marketplace %}. For more information, see AUTOTITLE.
{% ifversion ghec %}If you are an {% data variables.product.prodname_emu %}, then you cannot share your app on {% data variables.product.prodname_marketplace %}.{% endif %}
For more information about how users can install your app from {% data variables.product.prodname_marketplace %}, see AUTOTITLE and AUTOTITLE.
{% endif %}
Sharing your {% data variables.product.prodname_github_app %} via an install link
{% ifversion fpt or ghec %} If your {% data variables.product.prodname_github_app %} is public, other users and organizations can install your app. For more information about making your app public, see AUTOTITLE.
{% ifversion ghec %}If you are an {% data variables.product.prodname_emu %}{% ifversion enterprise-apps-public-beta %} or your app is owned by your enterprise account{% endif %}, you can only share your app with accounts within your enterprise.{% endif %}
{% else %} {% endif %}
{% data reusables.apps.settings-step %} {% data reusables.apps.enterprise-apps-steps %}
-
Next to the {% data variables.product.prodname_github_app %} that you want to share, click Edit.
-
Click Public page. {% data variables.product.company_short %} will bring you to the public page for your {% data variables.product.prodname_github_app %}.
-
Click Install. {% data variables.product.company_short %} will bring you to the installation URL for your {% data variables.product.prodname_github_app %}. The URL will look something like
{% data variables.product.oauth_host_code %}/{% ifversion ghes %}github-apps{% else %}apps{% endif %}/APP-NAME/installations/new, whereAPP-NAMEis the name of the {% data variables.product.prodname_github_app %}. -
Share the installation URL with other users. For more information about how users can install your app from this URL, see AUTOTITLE.
When you share the URL, you can include a
statequery parameter in the installation URL to preserve the state of the application page and return people back to that state after they install, authenticate, or accept updates to your {% data variables.product.prodname_github_app %}. For example, you could use thestateto correlate an installation to a user or account.To preserve a state, add it to the installation URL:
{% data variables.product.oauth_host_code %}/{% ifversion ghes %}github-apps{% else %}apps{% endif %}/<app name>/installations/new?state=AB12t
Sharing your {% data variables.product.prodname_github_app %} with {% data variables.product.prodname_ghe_server %} instances
If you want to share your {% data variables.product.prodname_github_app %} with {% data variables.product.prodname_ghe_server %} instances that you are not part of, you need to take additional steps. For more information, see AUTOTITLE.