# CyberArk Identity

Steps not yet verified in the identity provider's current admin console.

Recommended protocol: SAML 2.0.

## SAML 2.0

### CyberArk Identity を SAML 2.0 で接続

1. 「CyberArk Identity Admin Portal」にログインし、左側のナビゲーションで「Web Apps」を選択します。
2. 「Add Web Apps」を選択し、「Custom」タブを開いて「SAML」を追加し、「Yes」を選択してSAMLアプリの設定を開始します。（アプリがすでに存在する場合は、一覧からそのアプリを選択し、「Trust」タブに進みます。）
3. わかりやすい「App Name」と「Description」を入力し、「Save」を選択します。
4. 「Trust」タブを開きます。「Service Provider Configuration」セクションの「SP Entity Id / Issuer / Audience」に、KeenAuthのEntity ID **SP entity ID** を入力します。「Assertion Consumer Service (ACS) URL」には、KeenAuthのACS URL **ACS URL** を入力します。「Sign Response or Assertion?」では「Both」にチェックを入れます。
5. 「SAML Response」タブを開き、「Add」を使用して属性 id → LoginUser.Uuid、email → LoginUser.Email、firstName → LoginUser.FirstName、lastName → LoginUser.LastName を追加し、「Save」を選択します。任意で、グループとロールのマッピング用に、LoginUser.GroupNames にマッピングした groups という名前の属性を追加できます。
6. 「Permissions」タブを開き、「Add」を選択して、サインインを許可するユーザーとグループを選び、「Add」を選択します。アプリの「Status」が「Deployed」に変わります。
7. 「Trust」タブの「Service Provider Configuration」セクションで「Metadata」を選択し、「Copy URL」を選択してMetadata URLをコピーします。それをKeenAuthに入力し、接続テストを実行します。

Values in bold are shown on the connection's page in the Admin Portal, where this guide has them filled in.
