{"meta":{"title":"セットアップ URL について","intro":"ユーザーが GitHub Appをインストールした後にリダイレクトされる URL を指定できます。","product":"アプリ","breadcrumbs":[{"href":"/ja/enterprise-cloud@latest/apps","title":"アプリ"},{"href":"/ja/enterprise-cloud@latest/apps/creating-github-apps","title":"GitHub アプリの作成"},{"href":"/ja/enterprise-cloud@latest/apps/creating-github-apps/registering-a-github-app","title":"GitHub App の登録"},{"href":"/ja/enterprise-cloud@latest/apps/creating-github-apps/registering-a-github-app/about-the-setup-url","title":"セットアップ URL"}],"documentType":"article"},"body":"# セットアップ URL について\n\nユーザーが GitHub Appをインストールした後にリダイレクトされる URL を指定できます。\n\nGitHub Appを登録するときに、セットアップ URL を指定できます。 ユーザーが GitHub Appをインストールすると、セットアップ URL にリダイレクトされます。 インストール後に追加のセットアップが必要な場合は、この URL を使用して、次に行う手順をユーザーに伝えることができます。\n\nセットアップ URL を指定する場合に、 **\\[更新時にリダイレクト]** を選択して、ユーザーがインストールを更新した後でセットアップ URL にリダイレクトされるよう指定することもできます。 更新には、インストール用のリポジトリへのアクセス権の追加または削除が含まれます。\n\n> \\[!WARNING]\n> GitHubセットアップ URL にユーザーをリダイレクトすると、`installation_id`クエリ パラメーターが含まれます。 悪意のあるアクターは、なりすましの `installation_id` を使用してこの URL にアクセスできます。 したがって、`installation_id` パラメーターの有効性に依存しないでください。 代わりに、 GitHub App をインストールしたユーザーのユーザー アクセス トークンを生成し、インストールがそのユーザーに関連付けられていることを確認する必要があります。 詳しくは、「[GitHub アプリのユーザー アクセス トークンの生成](/ja/enterprise-cloud@latest/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app)」をご覧ください。\n\nセットアップ URL は GitHub App 登録中は省略可能ですが、ユーザーが GitHub Marketplaceでアプリを購入できるようにする場合は必須です。 詳しくは、「[新しい購入や無料トライアルの処理](/ja/enterprise-cloud@latest/apps/github-marketplace/using-the-github-marketplace-api-in-your-app/handling-new-purchases-and-free-trials)」をご覧ください。\n\nセットアップ URL は、コールバック URL とは異なります。 ユーザーは、 GitHub Appをインストールした後、セットアップ URL にリダイレクトされます。 ユーザーは、Web アプリケーション フローを介して GitHub App を承認すると、コールバック URL にリダイレクトされます。 詳しくは、「[ユーザー承認コールバック URL について](/ja/enterprise-cloud@latest/apps/creating-github-apps/registering-a-github-app/about-the-user-authorization-callback-url)」をご覧ください。\n\nGitHub Appの登録の詳細については、[GitHub アプリの登録](/ja/enterprise-cloud@latest/apps/creating-github-apps/registering-a-github-app/registering-a-github-app) を参照してください。\nGitHub App登録の変更の詳細については、[GitHub アプリの登録の変更](/ja/enterprise-cloud@latest/apps/maintaining-github-apps/modifying-a-github-app-registration) を参照してください。"}