> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Vault

> ActionsでVaultのフォームを使用する方法について説明します。

Vaultでは、シークレットや共通の設定（例：APIキー、アクセストークン、リフレッシュトークンなど）を安全に保存し、Vault接続として外部サービスや統合を使用した要求を認証できます。

<Callout icon="file-lines" color="#0EA5E9" iconType="regular">
  * 接続の中には、ユーザーに対して資格情報の提供を求めるものがあります（たとえば、Auth0でマシンツーマシン（M2M）アプリケーションを使う場合は、使用期限とリフレッシュトークンのあるアクセストークンを生成します）。接続は、両方のトークンを保管し、期限が切れる前に新しいアクセストークンを生成します。
  * 外部サービスによっては、API資格情報の生成にスコープの認可が必要です。スコープを変更した場合は、接続で問題が発生しないように、それらのサービスへの接続を更新してください。
  * 追加した接続は、すぐにフローで使用できます。既存の接続に対する更新は、自動的に反映されます。
</Callout>

## Vault接続を作成および変更する

アクションに資格情報が必要な場合、VaultページまたはフローエディターからVaultへの接続を作成・変更します。

### VaultページからVault接続を作成する

以下の手順に従って、VaultページからVault接続を追加します。

1. **［Auth0 Dashboard］>［Actions（アクション）］>［Forms（フォーム）］** の順に選択して、フォームエディターを開きます。

2. 左上隅の **{tenantName} >* \*\*\* ［Vault］*\* をクリックして、Vaultページを開きます。

   <Frame>
     <img src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/5l8GTXHD40NsjgmL/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?fit=max&auto=format&n=5l8GTXHD40NsjgmL&q=85&s=a7e1bab8474b5c96624be8094a8d90c7" alt="Dashboard > Forms > Vault" data-og-width="1332" width="1332" data-og-height="515" height="515" data-path="docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/5l8GTXHD40NsjgmL/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=280&fit=max&auto=format&n=5l8GTXHD40NsjgmL&q=85&s=4e403930ccaaa2df3c942fdda162176d 280w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/5l8GTXHD40NsjgmL/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=560&fit=max&auto=format&n=5l8GTXHD40NsjgmL&q=85&s=96088a1829a9af71685df3f7ff1a37b9 560w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/5l8GTXHD40NsjgmL/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=840&fit=max&auto=format&n=5l8GTXHD40NsjgmL&q=85&s=18f1b1ddc8a3287ab75d5ac65681e98c 840w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/5l8GTXHD40NsjgmL/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=1100&fit=max&auto=format&n=5l8GTXHD40NsjgmL&q=85&s=a94d1126c10022cbd1288504c5335e61 1100w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/5l8GTXHD40NsjgmL/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=1650&fit=max&auto=format&n=5l8GTXHD40NsjgmL&q=85&s=00b7af295bdc5107ebe1e3fb4cac8151 1650w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/5l8GTXHD40NsjgmL/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=2500&fit=max&auto=format&n=5l8GTXHD40NsjgmL&q=85&s=835a1a0b8303abc9568f819f702e6467 2500w" />
   </Frame>

3. **［Add Vault Connection（Vault接続を追加）］** を選択します。

4. 必要なアクションを選択し、 **［Continue（続行）］** をクリックします。

5. Vaultの **［Connection name（接続名）］** を追加し、 **［Continue（続行）］** を選択します。

6. 資格情報を入力します。特定の資格情報がない場合は、 **［Create an empty connection（空の接続を作成）］** を選択し、後で資格情報を追加することもできます。空の接続には、資格情報が不足していることを示すオレンジ色のアイコンが表示されます。

7. **［Add Vault Connection（Vault接続を追加）］** を選択します。

### フローエディターからVault接続を作成する

フローアクションから、たとえばTwilioのようなVault接続を追加するには、以下の手順を実行します。

1. **［Auth0 Dashboard］>［Actions（アクション）］>［Forms（フォーム）］>［Flows（フロー）］** の順に選択して、フローエディターを開きます。

2. フローを選択し、 **［Send SMS with Twillo（TwilloでSMSを送信］** アクションを追加します。

3. アクションの **［Vault connection（Vault接続）］** 設定で、 **+** アイコンを選択します。

   <Frame>
     <img src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/1FU_hDyg-ytA7ilg/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?fit=max&auto=format&n=1FU_hDyg-ytA7ilg&q=85&s=d6fbd0dfc42ab95602aec8d697484419" alt="Dashboard > Forms > Vault " data-og-width="1104" width="1104" data-og-height="191" height="191" data-path="docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/1FU_hDyg-ytA7ilg/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=280&fit=max&auto=format&n=1FU_hDyg-ytA7ilg&q=85&s=ed59a34671c8002dcba97912017810f7 280w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/1FU_hDyg-ytA7ilg/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=560&fit=max&auto=format&n=1FU_hDyg-ytA7ilg&q=85&s=e51cdeda9de150bf7541faeb9d502558 560w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/1FU_hDyg-ytA7ilg/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=840&fit=max&auto=format&n=1FU_hDyg-ytA7ilg&q=85&s=9cdbc59f7fb4f0a6230b6231eb4d27b9 840w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/1FU_hDyg-ytA7ilg/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=1100&fit=max&auto=format&n=1FU_hDyg-ytA7ilg&q=85&s=e0a7edd07369d047f5f52c975ab773aa 1100w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/1FU_hDyg-ytA7ilg/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=1650&fit=max&auto=format&n=1FU_hDyg-ytA7ilg&q=85&s=0503dc2f8d92368241344d3574007e1d 1650w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/1FU_hDyg-ytA7ilg/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=2500&fit=max&auto=format&n=1FU_hDyg-ytA7ilg&q=85&s=eab4b5b6349d7b511a04f68cc6cb4c1c 2500w" />
   </Frame>

4. Vaultの **［Connection name（接続名）］** を追加し、 **［Continue（続行）］** を選択します。

5. 資格情報を入力します。特定の資格情報がない場合は、 **［Create an empty connection（空の接続を作成）］** を選択し、後で資格情報を追加することもできます。空の接続には、資格情報が不足していることを示すオレンジ色のアイコンが表示されます。

   <Frame>
     <img src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/Ul2mhPH2EuhkGqPW/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?fit=max&auto=format&n=Ul2mhPH2EuhkGqPW&q=85&s=b96dce631623d3265f3cbd9cfc3f3533" alt="Dashboard > Forms > Vault > Twilio connection settings" data-og-width="1369" width="1369" data-og-height="491" height="491" data-path="docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/Ul2mhPH2EuhkGqPW/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=280&fit=max&auto=format&n=Ul2mhPH2EuhkGqPW&q=85&s=cfdbed75babd5a3c3c8834e0eb99d146 280w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/Ul2mhPH2EuhkGqPW/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=560&fit=max&auto=format&n=Ul2mhPH2EuhkGqPW&q=85&s=e96e1726ff25d03a15cceb1b5ad3130c 560w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/Ul2mhPH2EuhkGqPW/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=840&fit=max&auto=format&n=Ul2mhPH2EuhkGqPW&q=85&s=125a03a2dfb57d95886c84ddf80446d8 840w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/Ul2mhPH2EuhkGqPW/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=1100&fit=max&auto=format&n=Ul2mhPH2EuhkGqPW&q=85&s=5b05c065fdbed3d3e80667859fbbcf08 1100w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/Ul2mhPH2EuhkGqPW/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=1650&fit=max&auto=format&n=Ul2mhPH2EuhkGqPW&q=85&s=0a907b420773e2b90700684ff347f3c3 1650w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/Ul2mhPH2EuhkGqPW/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=2500&fit=max&auto=format&n=Ul2mhPH2EuhkGqPW&q=85&s=f3014b9950a49c8d15ef53e4043cd574 2500w" />
   </Frame>

6. **［Add Vault Connection（Vault接続を追加）］** を選択します。
