---
title: "Sitecore Identity Serverの設定"
slug: "configure-sitecore-identity-server"
abstract: ""
---
# Sitecore Identity Serverの設定

## アイデンティティサーバーインスタンスの設定

Sitecore Identity Serverインスタンスの設定:

1.  Sitecore Identity Serverインスタンスで …\\Config\\production\\Sitecore.IdentityServer.Host.xmlファイルを開いてください。
    
2.  接続文字列を更新して、セキュリティデータベースをData Sourceとして使うようにしてください:
    
    <ConnectionString>Data Source=.;Initial Catalog=Sitecore.Core;User ID=coreuser;Password=Test12345</ConnectionString>
    
3.  AllowedCorsOriginsGroup1とPasswordRecoveryUrl設定にSitecoreインスタンスのURLが含まれていることを確認してください:
    
    <PasswordRecoveryUrl>http://sitecore\_instance/sitecore/login?rc=1</PasswordRecoveryUrl>
    <AllowedCorsOriginsGroup1>https://sitecore\_instance</AllowedCorsOriginsGroup1>
    
    > !注スケールされた環境では、これらの設定はContent Managementサーバーを指す必要があります。
    
4.  ClientSecret1がCMインスタンスの…\\App\_Config\\ConnectionStrings.configファイルで使うsitecoreidentity.secretキーと同じか確認してください。
    
5.  実装した設定変更は、別のパッチファイルで再構成されていることを確認してください。
    
6.  カスタムプラグインは {SI\_server\_root\_folder}\\sitecore\\ フォルダに追加してください。
    
7.  Sitecore Identity Serverを起動します。
    

## Sitecore Identityクライアントの設定

すべてのSitecore Experience Platformインスタンスは、デフォルトでSitecore Identity Serverのクライアントです。SitecoreインスタンスをSitecore Identity Serverでログインさせるには、インスタンス上でSitecore Identity Serverを登録してください:

1.  Sitecoreインスタンスのファイル内: …\\App\_Config\\Sitecore\\Owin.Authentication.IdentityServer\\Sitecore.Owin.Authentication.IdentityServer.config
    
    identityServerAuthority変数で、SitecoreアイデンティティサーバーのURLを設定します:
    
    <sc.variable name="identityServerAuthority"value="https://SitecoreIdentityServerHost" />
    
2.  Sitecoreインスタンスを再起動してください。