> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> SAML2 Web App アドオンを使用して、GitHub Enterprise Server のプライベートインスタンスで Auth0 をアイデンティティプロバイダーとして設定する方法を説明します。

# GitHub Enterprise Server を SAMLサービスプロバイダーとして設定する

SAML2 Web App アドオンを使用して、Auth0 を [GitHub Enterprise Server](https://help.github.com/en/enterprise/2.16/admin/user-management/using-saml) (つまり、プライベートな GitHub アプライアンス) の<Tooltip tip="IDプロバイダー（IdP）: デジタルアイデンティティを保存・管理するサービス。" cta="用語集を見る" href="/docs/ja-jp/glossary?term=identity+provider">アイデンティティプロバイダー</Tooltip>として設定できます。GitHub Enterprise Cloud (github.com) 向けに Auth0 をアイデンティティプロバイダーとして設定する手順をお探しの場合は、代わりに [Configure Auth0 as Identity Provider for GitHub Enterprise Cloud](/docs/ja-jp/authenticate/single-sign-on/outbound-single-sign-on/configure-auth0-saml-identity-provider/configure-saml2-web-app-addon-for-github-enterprise-cloud) を参照してください。

<div id="configure-saml-sso-on-auth0">
  ## Auth0 で SAML SSO を設定する
</div>

1. [Auth0 Dashboard > アプリケーション > アプリケーション](https://manage.auth0.com/#/applications) に移動し、新しいアプリケーションを作成します。**GitHub** などのわかりやすい名前を付けてください。アプリケーションの種類はどれでも選択できますが、**Regular Web App** を推奨します。
2. [アドオン](https://manage.auth0.com/#/applications/\{yourClientId}/addons) タブに移動し、**SAML2 Web App** のトグルを有効にします。
3. **設定** タブで、**Application Callback URL** を次のように設定します: `https://github.com/orgs/{yourGitHubOrgName}/saml/consume`.

   <Frame>
     <img src="https://mintcdn.com/translations/6GE5Z24GDCZehiJ9/docs/images/cdy7uua7fh8z/6dJgYkcOgMZ73HVTkAWt1x/fe9dbbf306e6c587cb3326c00a3b4e1f/2025-02-27_13-59-00.png?fit=max&auto=format&n=6GE5Z24GDCZehiJ9&q=85&s=02e6b08c46ca79dacc371032b125cb3b" alt="Dashboard Applications Applications Addons Tab SAML2 Web App Settings Tab" width="606" height="757" data-path="docs/images/cdy7uua7fh8z/6dJgYkcOgMZ73HVTkAWt1x/fe9dbbf306e6c587cb3326c00a3b4e1f/2025-02-27_13-59-00.png" />
   </Frame>
4. 次のコードを **設定** テキストボックスに貼り付け、**Debug** をクリックします。

   ```json lines theme={null}
   {
         "audience": "{yourGitHubServerUrl}",
         "mappings": {
       "user_id": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
       "email": "emails",
       "name": "full_name"
         },
         "passthroughClaimsWithNoMapping": false,
         "mapIdentities": false,
         "signatureAlgorithm": "rsa-sha256",
         "digestAlgorithm": "sha256",
         "nameIdentifierProbes": [
       "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"
         ]
       }
   ```

   `{yourGitHubOrgName}` は、GitHub のサブスクリプションに対応する GitHub の organization名 に置き換えてください。たとえば `https://github.yourname.com` です。

   1. 上記のマッピングでは、`user_id` が **Name Identifier** として GitHub に送信されます。GitHub アプリケーションで複数の接続を有効にする場合は、このオプションを使用してください。これにより一意性が確保されます (各ユーザーは異なる ID を持ちます) 。
   2. 単一の接続を使用している場合は、`nickname` や別の一意の識別子を、よりわかりやすい **Name Identifier** として使用することもできますが、選択するプロパティが一意であることを確認してください。
5. タブの一番下までスクロールし、**Enable** をクリックします。
6. **使用状況** タブで **Identity Provider Metadata** を見つけ、**Download** をクリックしてメタデータファイルをダウンロードします。Auth0 をアイデンティティプロバイダーとして設定する際に必要になります。

   <Frame>
     <img src="https://mintcdn.com/translations/3nS3prIggmJG9TUI/docs/images/cdy7uua7fh8z/3T90BDpyTXFUWDp1JkncBU/86bdba6bed8130b34b42b25c9bf2d232/dashboard-applications-applications-addons-saml2-web-app-usage.png?fit=max&auto=format&n=3nS3prIggmJG9TUI&q=85&s=f7cb6307a229717d2fb9f8a42b3a0fbb" alt="Dashboard Applications Applications Addons Tab SAML2 Web App Usage Tab" width="400" height="440" data-path="docs/images/cdy7uua7fh8z/3T90BDpyTXFUWDp1JkncBU/86bdba6bed8130b34b42b25c9bf2d232/dashboard-applications-applications-addons-saml2-web-app-usage.png" />
   </Frame>

<div id="configure-saml-sso-on-github">
  ## GitHub で SAML SSO を設定する
</div>

GitHub Enterprise Cloud での設定を完了するには、[Enterprise Server で SAML を使用する - GitHub Help](https://help.github.com/en/enterprise/admin/user-management/using-saml#configuring-saml-settings) の手順に従ってください。必要な情報は次のとおりです。

| フィールド     | 値                                                                                                              |
| --------- | -------------------------------------------------------------------------------------------------------------- |
| サインオン URL | `https://{yourDomain}/samlp/{CLIENT_ID}`<br />`{'{CLIENT_ID}'}` は、Auth0 で作成した GitHub アプリケーションの `client_id` です。 |
| 発行者       | `urn:auth0:{yourTenant}`                                                                                       |
| 公開証明書     | `https://{yourDomain}/pem` からダウンロードします。ダウンロードしたファイルをテキストエディタで開き、内容をコピーして GitHub のテキストエリアに貼り付けます。               |
| 署名方式      | `RSA256-SHA256`                                                                                                |
| ダイジェスト方式  | `SHA256`                                                                                                       |
