---
schema_version: "1"
id: 25ec7fdd3b1a5cdfda47cde74592ab1a34ce2153aca6502620597128827204ba
title: Anypoint Platform で ID プロバイダーが設定されていない場合の SSO の設定
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/api-experience-hub/sso-use-case-1.md
canonical_url: https://docs.mulesoft.com/jp/api-experience-hub/sso-use-case-1
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5f0c05775dd656997bd9fd89a9494ad2e1a56c80feb952079e7b4503889beae6
description: MuleSoft Documentation Site
latest: true
---
# Anypoint Platform で ID プロバイダーが設定されていない場合の SSO の設定

このユースケースには、Anypoint Platform で他の ID プロバイダーが設定されていない場合に、ポータルの ID プロバイダーをセットアップするための手順が含まれています。ID プロバイダーが設定されていないため、デフォルトの ID プロバイダーにより、ポータルの ID プロバイダーが Anypoint Platform の ID プロバイダーに自動的にマップされ、すべての Salesforce ユーザーに Anypoint Platform の ID が提供されます。デフォルトの ID プロバイダーについての詳細は、​[「標準の設定」](https://docs.mulesoft.com/jp/api-experience-hub/enabling-sso-for-your-portal#out-of-the-box-configurations)​を参照してください。

## [](#始める前に)始める前に

- 任意の ID プロバイダーで、アプリケーションにアクセスできるユーザーに対するユーザーまたは ID が存在する必要があります。
- [「始める前に」](https://docs.mulesoft.com/jp/api-experience-hub/%3Cenabling-sso-for-your-portal#before-you-begin >)セクションの情報を確認して、API Experience Hub が ID プロバイダーのカスタムユーザー属性とクレームを設定するために必要なロール、権限、その他の情報を理解します。

## [](#ステップ-1-ポータルの-sso-を有効にする)ステップ 1 - ポータルの SSO を有効にする

SSO を有効にするには、Anypoint Platform で Salesforce ユーザー用の ID を作成するための ID プロバイダーが必要です。

このステップでは、API Experience Hub ポータルの ID プロバイダーでアプリケーションを作成し、アプリケーション設定でグループ情報を送信する機能を有効にし、グループを設定し、デフォルトの ID プロバイダーを設定します。これらの手順を実行するには、アプリケーションと ID プロバイダーアプリケーション間を行き来して情報をコピーまたは追加する必要があります。

### [](#次のサンプル方法のいずれかを使用してアプリケーションを作成および設定)次のサンプル方法のいずれかを使用してアプリケーションを作成および設定

- Okta OpenID Connect を使用してアプリケーションを作成および設定する
- Okta SAML を使用してアプリケーションを作成および設定する

#### [](#okta-openid-connect-を使用してアプリケーションを作成および設定する)Okta OpenID Connect を使用してアプリケーションを作成および設定する

Details

OpenID Connect を使用して ID プロバイダーで API Experience Hub ポータル用の新しいアプリケーションを作成します。

1. Okta で、OpenID Connect Web アプリケーションを作成します。詳細は、 [「Create OIDC app integrations (OIDC アプリケーションインテグレーションの作成)」](https://help.okta.com/oie/en-us/content/topics/apps/apps_app_integration_wizard_oidc.htm)​を参照してください。
2. **\[Connection (一般設定)\]**​ セクションで、次の項目に入力します。
    
    <table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 66.6667%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">値</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>App integration name (アプリケーションインテグレーション名)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>アプリケーションの名前を入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Grant tpe (許可種別)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>[Authorization Code (認証コード)]</strong>​ を選択します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Assignments (割り当て)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>[Limit access to selected groups (選択済みのグループへのアクセスを制限)]</strong>​ を選択します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Selected group(s) (選択済みのグループ)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>アプリケーションにアクセスする必要があるグループの名前を入力します。</p>
</div></div></td>
</tr>
</tbody>
</table>
3. ID プロバイダーが、​[「始める前に」](https://docs.mulesoft.com/jp/api-experience-hub/enabling-sso-for-your-portal#before-you-begin)​セクションにリストされた予期されるクレームを送信していることを確認します。
4. アプリケーションが送信するクレームを設定します。
    
    たとえば、Okta 用の OpenID Connect の場合、次の手順を使用してグループクレームを設定します。
    
    1. **\[Sign On (サインオン)\]**​ タブで、​**\[OpenID Connect ID Token (OpenID Connect ID トークン)\]**​ セクションの ​**\[Edit (編集)\]**​ をクリックします。
    2. **\[Groups claim type (グループクレーム種別)\]**​ で、​**\[Filter (検索条件)\]**​ を選択します。
    3. **\[Groups claim filter (グループクレーム検索条件)\]**​ で、​`[groups (グループ)]`​ を入力します。
    4. 式で ​**\[Matches regex\]**​ を選択し、ワイルドカードに​`「.*」`​を入力します。
        
        ![グループクレーム検索条件の例](/mulesoft/current/ja-jp/api-experience-hub/_images/aeh-groups-claim-filter.png)
5. OpenID Connect を使用して、Salesforce の認証プロバイダーを設定します。
    
    ID プロバイダーアプリケーション情報を使用して、Salesforce で認証プロバイダーまたは SSO 設定をセットアップします。
    
    1. OpenID Connect アプリケーションから、次の設定値を取得します。
        
        - **Client ID (クライアント ID)**
        - **Client Secret (クライアントシークレット)**
        - **Authorize Endpoint URL (承認エンドポイント URL)**
        - **Token Endpoint URL (トークンエンドポイント URL)**
        - **User Info Endpoint URL (ユーザー情報 エンドポイント URL)**
    2. **Salesforce**​ で ​**\[設定\]**​ に移動します。
    3. **\[クイック検索\]**​ ボックスに​`「認証」`​と入力し、​**\[認証プロバイダー\]**​ を選択します。
    4. **\[新規\]**​ をクリックします。
    5. **\[プロバイダータイプ\]**​ で、​**\[OpenID Connect\]**​ を選択します。
    6. 次の項目に入力します。
        
        <table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 66.6667%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">値</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>プロバイダータイプ</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>OpenID Connect</strong>​</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>名前</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>プロバイダーの名前を入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>コンシューマーキー</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>ID プロバイダーのクライアント ID を入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>コンシューマーの秘密</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>ID プロバイダーのクライアントシークレットを入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Authorize Endpoint URL (承認エンドポイント URL)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code><a href="https://{domainofOktaorg}.okta.com/oauth2/v1/authorize*" class="bare">https://{domainofOktaorg}.okta.com/oauth2/v1/authorize*</a></code>​ と入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Token Endpoint URL (トークンエンドポイント URL)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code><a href="https://{domainofOktaorg}.okta.com/oauth2/v1/token" class="bare">https://{domainofOktaorg}.okta.com/oauth2/v1/token</a></code>​ と入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>User Info Endpoint URL (ユーザー情報 エンドポイント URL)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code><a href="https://{domainofOktaorg}.okta.com/oauth2/v1/userinfo`" class="bare">https://{domainofOktaorg}.okta.com/oauth2/v1/userinfo`</a></code>​ と入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>デフォルトのスコープ</strong>​</p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>profile openid email groups (プロファイルの openid メールグループ)</strong>​</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>登録ハンドラー</strong>​</p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>AEHPortalRegistrationHandler</strong>​</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>他のアカウントで登録を実行</strong>​</p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>システム管理者ユーザーを選択します。</p>
</div></div></td>
</tr>
</tbody>
</table>
        
        ![Salesforce 認証プロバイダーの例](/mulesoft/current/ja-jp/api-experience-hub/_images/aeh-salesforce-auth-provider.png)
    7. **\[保存\]**​ をクリックします。
6. ポータルのリダイレクト URI を設定します。
    
    リダイレクトを設定するには、15 桁の組織 ID と 18 桁の組織 ID を使用し、各組織 ID の URL を追加します。
    
    1. Okta アプリケーションで、​**\[General (一般)\]**​ タブを選択します。 **\[Sign-in redirect URIs (サインインリダイレクト URI)\]**​ に次の URL を追加します。
        
        - [https://login.salesforce.com/services/authcallback/${15DigitSalesforceOrganizationId}/${authProviderURLSuffix}](https://login.salesforce.com/services/authcallback/${15DigitSalesforceOrganizationId}/${authProviderURLSuffix})
        - [https://login.salesforce.com/services/authcallback/${18DigitSalesforceOrganizationId}/${authProviderURLSuffix}](https://login.salesforce.com/services/authcallback/${18DigitSalesforceOrganizationId}/${authProviderURLSuffix})
        - [https://${domain}.my.site.com/aeh/services/authcallback/${authProviderURLSuffix}](https://${domain}.my.site.com/aeh/services/authcallback/${authProviderURLSuffix})
            
            ![リダイレクト URI の例](/mulesoft/current/ja-jp/api-experience-hub/_images/aeh-sso-redirect-uris.png)
            
            URL を見つける手順は、次のとおりです。
        - salesforceOrganizationId の場合、​**\[設定\]**​ > ​**\[組織情報\]**​ に移動する。
        - authProviderURLSuffix の場合、​**\[設定\] > \[認証プロバイダー\]**​ に移動し、認証プロバイダーをクリックして ​**\[URL 接尾辞\]**​ を選択する。
        - domain の場合、​**\[設定\]**​ > \[私のドメイン\] > ​**\[現在の \[私のドメイン\] の URL\]**​ に移動する。

#### [](#okta-saml-を使用してアプリケーションを作成および設定する)Okta SAML を使用してアプリケーションを作成および設定する

Details

SAML を使用して ID プロバイダーで API Experience Hub ポータル用の新しいアプリケーションを作成します。詳細は、Okta ドキュメントの [「Create SAML app integrations (SAML アプリケーションインテグレーションの作成)」](https://help.okta.com/oie/en-us/content/topics/apps/apps_app_integration_wizard_saml.htm)​を参照してください。

1. Okta から、SAML アプリケーションを作成します。
2. **\[General Settings (一般設定)\]**​ に SAML アプリケーションの名前を入力します。
3. **\[Do not display application icon to users (ユーザーにアプリケーションアイコンを表示しない)\]**​ を選択します。
4. **\[Next (次へ)\]**​ をクリックします。
5. **\[SAML Settings (SAML 設定)\]**​ で、次の項目に入力します。
    
    <table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 66.6667%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">値</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Single Sign-On URL (シングルサインオン URL)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>ポータルログインの URL を入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Use this for Recipient URL and Destination URL (これを受信 URL と宛先 URL に使用)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>このオプションを選択します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Audience URI (SP Entity ID) (オーディエンス URI (SP エンティティ ID))</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>https と Salesforce ドメイン (<a href="https://{salesforcedomain}.com" class="bare">https://{salesforcedomain}.com</a> など) を入力します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Name ID format (名前 ID 形式)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>EmailAddress</strong></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Application username (アプリケーションユーザー名)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Okta username (Okta ユーザー名)</strong></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Update application username on (アプリケーションユーザー名の更新タイミング)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Create and update (作成および更新)</strong></p>
</div></div></td>
</tr>
</tbody>
</table>
    
    ![SAML 設定の例](/mulesoft/current/ja-jp/api-experience-hub/_images/aeh-sso-saml-settings.png)
6. ID プロバイダーでユーザーを適切にマップするために API Experience Hub がクレームに期待する内容については、​[「始める前に」](https://docs.mulesoft.com/jp/api-experience-hub/enabling-sso-for-your-portal#before-you-begin)​セクションを参照してください。
7. **\[Attribute Statements (optional) (属性ステートメント (省略可能))\]**​ セクションで、次のカスタム属性を追加して SAML インテグレーションを設定します。サポートされる形式については、​[「カスタムユーザー属性」](https://docs.mulesoft.com/jp/api-experience-hub/enabling-sso-for-your-portal#custom-user-attributes)​を参照してください。
    
    <table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 16.6666%;">
<col style="width: 33.3333%;">
<col style="width: 50.0001%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">名前形式</th>
<th class="tableblock halign-left valign-top">値</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>first_name</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Unspecified</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>user.firstName</strong></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>last_name</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Unspecified</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>user.lastName</strong></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>email</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Unspecified</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>user.email</strong></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>groups</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Unspecified</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>(",", getFilteredGroups({"00gdkat3p5RCvkQQC5d7", "00gdjgk337kYDxtE35d7"}, "group.name", 40))</strong></p>
</div></div></td>
</tr>
</tbody>
</table>
    
    ![SAML 属性ステートメントの例](/mulesoft/current/ja-jp/api-experience-hub/_images/aeh-sso-saml-attribute-statements.png)
    
    この例の ID の 00gdkat3p5RCvkQQC5d7 と 00gdjgk337kYDxtE35d7 は、送信するグループに対応します。Anypoint Platform で Okta を設定する場合は、必ずすべての Anypoint Platform グループを送信してください。そうしないと、ユーザーがアクセスできなくなる可能性があります。
8. **\[Next (次へ)\]**​ をクリックします。
9. **\[I’m an Okta customer adding an internal app (私は内部アプリケーションを追加する Okta ユーザーです)\]**​ を選択します。
10. **\[Finish (完了)\]**​ をクリックします。
11. **\[Assignments (割り当て)\]**​ タブを選択して ​**\[Groups (グループ)\]**​ を選択します。
12. **\[Assign (割り当て)\]**​ をクリックし、​**\[Assign to groups (グループに割り当て)\]**​ を選択します。
13. リストから、特定のグループの行の ​**\[Assign (割り当て)\]**​ をクリックし、​**\[Done (完了)\]**​ をクリックします。
14. **\[Sign On (サインオン)\]**​ タブを選択し、​**\[View SAML setup instructions (SAML セットアップ手順を表示)\]**​ をクリックして、アプリケーションに SAML を設定する方法の手順を表示します。
    
    ![\[View SAML setup instructions (SAML セットアップ手順を表示)\] ボタン](_images/aeh-sso-view-saml-setup-instructions.png)
15. Salesforce の ​**\[シングルサインオン設定\]**​ タブを設定するには、手順ページから次の情報を取得します。
    
    - **Identity Provider Single Sign-On URL (ID プロバイダーシングルサインオン URL)**
    - **Identity Provider Issuer (ID プロバイダー発行者)**
    - **X.509 Certificate (X.509 証明書) (証明書をダウンロード)**
        
        ![ページをセットアップする SAML 手順](/mulesoft/current/ja-jp/api-experience-hub/_images/aeh-sso-saml-setup-instructions-page.png)
16. **Salesforce**​ の ​**\[設定\]**​ に移動し、​**\[シングルサインオン設定\]**​ を検索します。
17. **\[シングルサインオン設定\]**​ タブの ​**\[SAML を使用した統合シングルサインオン\]**​ セクションで、​**\[SAML を有効化\]**​ を選択し、​**\[保存\]**​ をクリックします。
18. **\[シングルサインオン設定\]**​ タブで ​**\[編集\]**​ をクリックし、次の項目に入力します
    
    <table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 66.6667%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">値</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Issuer (発行者)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>[View SAML setup instructions (SAML セットアップ手順を表示)]</strong>​ の ​<strong>[Identity Provider Issuer (ID プロバイダー発行者)]</strong>​ に合わせます。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Entity ID (エンティティ ID)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>アプリケーションで設定した​<strong>オーディエンス制限</strong>​に合わせます。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>ID プロバイダーの証明書</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>[View SAML setup instructions (SAML セットアップ手順を表示)]</strong>​ から以前にダウンロードした証明書をアップロードします。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>SAML ID 種別</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>アサーションには、ユーザーオブジェクトの​<strong>統合 ID</strong>​ が含まれます。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>SAML ID の場所</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>ID は、​<strong>Subject</strong>​ ステートメントの ​<strong>NameIdentified</strong>​ 要素にあります。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>ID プロバイダーのログイン URL</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>[View SAML setup instructions (SAML セットアップ手順を表示)]</strong>​ の ​<strong>[Identity Provider Single Sign-On URL (ID プロバイダーシングルサインオン URL)]</strong>​ に合わせます。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>カスタムログアウト URL</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>Okta の URL</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>ユーザープロビジョニング</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Enabled</strong></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>ユーザープロビジョニングのタイプ</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>Apex ハンドラーを使用したカスタム SAML JIT</strong></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>SAML JIT ハンドラー</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>AEHPortalRegistrationHandler</strong></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>他のアカウントでハンドラーを実行</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>[システム管理者] を選択。</p>
</div></div></td>
</tr>
</tbody>
</table>
    
    ![SAML シングルサインオン設定の例](/mulesoft/current/ja-jp/api-experience-hub/_images/aeh-sso-saml-single-sign-on-settings.png)

## [](#add-identity-provider)ステップ 2: Salesforce ID プロバイダーを追加する

ID プロバイダーを Salesforce 用に設定したら、API Experience Hub UI からその ID プロバイダーを追加して有効にします。ID プロバイダーが有効になっている場合、ユーザーはこの ID プロバイダーを使用してポータルにログインできます。

1. **\[API Experience Hub\]**​ > ​**\[User management (ユーザー管理)\]**​ に移動します。
2. **\[User management (ユーザー管理)\]**​ ページで、​**\[Login settings (ログイン設定)\]**​ タブを選択します。
3. **\[Single sign-on (SSO) (シングルサインオン (SSO))\]**​ セクションから、ステップ 2 ​**\[Add Salesforce identity providers (Salesforce ID プロバイダーを追加)\]**​ までスクロールダウンします。
4. **\[Select identity provider (ID プロバイダーを選択)\]**​ をクリックし、ドロップダウンメニューからオプションを選択します。
5. **\[+ Add identity provider (+ ID プロバイダーを追加)\]**​ をクリックします。
6. スライダーを ​**\[Enabled (有効)\]**​ に移動します。

## [](#add-group-mapping)ステップ 3: グループマッピングを追加する

ポータルの SSO を設定する場合、ユーザーは Salesforce と Anypoint Platform の両方で ID を持っている必要があります。SSO ユーザーは、グループ名を使用してチームにマップされます。アクセス管理を使用して、ユーザーをチームにマップする必要があります。API Experience Hub には、​**\[AEH Portal (AEH ポータル) - ${salesforceOrganizationId}\_${salesforceCommunityId}\]**​ という標準のチームが用意されており、アクセス管理のチームとして自動的に追加されています。

API Experience Hub で対応するプロファイルにユーザーを追加することで、グループマッピングを追加します。

1. **\[Access Management (アクセス管理)\]**​ > ​**\[Teams (チーム)\]**​ に移動します。
2. **\[AEH Portal Guests (AEH ポータルゲスト)\]**​ を選択し、​**\[AEH Portal Members (AEH ポータルメンバー)\]**​ を選択します。
3. **\[External IdP Groups (外部 IdP グループ)\]**​ を選択します。
4. **\[Group Name (グループ名)\]**​ 項目に​**「AEH Members」**​ (AEH メンバー) と入力します。
5. **\[Provider Name (プロバイダー名)\]**​ 項目で、対応する Salesforce ID プロバイダーの名前を選択します。
6. **\[Type (種別)\]**​ 項目で ​**\[Member (メンバー)\]**​ を選択し、​**\[Add (追加)\]**​ をクリックします。
    
    ![アクセス管理グループマッピング](/mulesoft/current/ja-jp/api-experience-hub/_images/aeh-sso-access-mgmt-ext-idp-groups.png)
7. **\[Save Changes (変更を保存)\]**​ をクリックします。
    
    指定したグループに関連付けられている SSO ユーザーがチームに割り当てられます。

## [](#test-sso)ステップ 4: SSO 設定をテストする

ポータルの SSO が正しく設定されていることを確認します。

1. ブラウザーでシークレットウィンドウを開きます。
2. API Experience Hub ポータルに移動します。
3. 設定した SSO オプションを選択します。
4. ポータルの ID プロバイダーで設定したグループに属するユーザーでログインします。
5. ポータルでのユーザーの API の表示を確認します。
6. **\[Access Management (アクセス管理)\]**​ > ​**\[Users (ユーザー)\]**​ に移動します。
7. ユーザー名を使用して検索し、ユーザーが目的の ID プロバイダーにマップされていることを確認します。
8. グループマッピングが設定されているチームに移動します。
    
    **\[Members (メンバー)\]**​ タブで、そこにユーザーが表示されていることを確認します。

## [](#関連情報)関連情報

- [シングルサインオンエラーのトラブルシューティング](https://docs.mulesoft.com/jp/api-experience-hub/troubleshoot-sso-errors)
- [ポータルでのシングルサインオンの有効化](https://docs.mulesoft.com/jp/api-experience-hub/enabling-sso-for-your-portal)
- [ユーザーの管理](https://docs.mulesoft.com/jp/api-experience-hub/managing-users)