> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-feat-docs-5551-enterprise-connect.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-staging-feat-docs-5551-enterprise-connect/2rSqtPs_sDwaUxsz/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?fit=max&auto=format&n=2rSqtPs_sDwaUxsz&q=85&s=d6833505faaadc77130b6b89df1f5853" 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-staging-feat-docs-5551-enterprise-connect/2rSqtPs_sDwaUxsz/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=280&fit=max&auto=format&n=2rSqtPs_sDwaUxsz&q=85&s=b5eb878b4e3f8c30141cce8de0f5a8e6 280w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/2rSqtPs_sDwaUxsz/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=560&fit=max&auto=format&n=2rSqtPs_sDwaUxsz&q=85&s=9eaeae12f1949cca70f442dfb41cd4ef 560w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/2rSqtPs_sDwaUxsz/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=840&fit=max&auto=format&n=2rSqtPs_sDwaUxsz&q=85&s=92accd25a3136bbcbae202560b2ea632 840w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/2rSqtPs_sDwaUxsz/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=1100&fit=max&auto=format&n=2rSqtPs_sDwaUxsz&q=85&s=ead5365391f83f487cea764567d830f0 1100w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/2rSqtPs_sDwaUxsz/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=1650&fit=max&auto=format&n=2rSqtPs_sDwaUxsz&q=85&s=35fd19f9a81ab7e6faeb07c870e4e41e 1650w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/2rSqtPs_sDwaUxsz/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=2500&fit=max&auto=format&n=2rSqtPs_sDwaUxsz&q=85&s=91995744a193e6bd27574e72b891dded 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-staging-feat-docs-5551-enterprise-connect/oDF-uHgdNl5IjBI-/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?fit=max&auto=format&n=oDF-uHgdNl5IjBI-&q=85&s=8675b7c6235cc180e9b89ed6180cd4c4" 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-staging-feat-docs-5551-enterprise-connect/oDF-uHgdNl5IjBI-/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=280&fit=max&auto=format&n=oDF-uHgdNl5IjBI-&q=85&s=5b827d456f12b1b6a75707f08665b72e 280w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/oDF-uHgdNl5IjBI-/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=560&fit=max&auto=format&n=oDF-uHgdNl5IjBI-&q=85&s=99a983ad263d1d45b86abb51265ceaca 560w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/oDF-uHgdNl5IjBI-/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=840&fit=max&auto=format&n=oDF-uHgdNl5IjBI-&q=85&s=f08b562f633e0bffb5ed55c1bfce29ff 840w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/oDF-uHgdNl5IjBI-/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=1100&fit=max&auto=format&n=oDF-uHgdNl5IjBI-&q=85&s=de2681744127d9f54391e008d2bd3c4d 1100w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/oDF-uHgdNl5IjBI-/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=1650&fit=max&auto=format&n=oDF-uHgdNl5IjBI-&q=85&s=f00f532efebcc276f57534c6ab19cb11 1650w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/oDF-uHgdNl5IjBI-/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=2500&fit=max&auto=format&n=oDF-uHgdNl5IjBI-&q=85&s=7516a33f5745d94251ed1a8a561f9b8a 2500w" />
   </Frame>

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

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

   <Frame>
     <img src="https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/VujDPUxuwnzBGC46/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?fit=max&auto=format&n=VujDPUxuwnzBGC46&q=85&s=47ee9113739d79d431cf57ff4851ed6b" 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-staging-feat-docs-5551-enterprise-connect/VujDPUxuwnzBGC46/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=280&fit=max&auto=format&n=VujDPUxuwnzBGC46&q=85&s=e9218f8b461f83d3c994123d7fcf2f58 280w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/VujDPUxuwnzBGC46/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=560&fit=max&auto=format&n=VujDPUxuwnzBGC46&q=85&s=42de3ebdbf086a3c1d8260562dcce499 560w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/VujDPUxuwnzBGC46/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=840&fit=max&auto=format&n=VujDPUxuwnzBGC46&q=85&s=744bfb89fe1e1ab1813fda422ce92453 840w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/VujDPUxuwnzBGC46/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=1100&fit=max&auto=format&n=VujDPUxuwnzBGC46&q=85&s=e0d66cb0e8df697d88dc9981c503c49b 1100w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/VujDPUxuwnzBGC46/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=1650&fit=max&auto=format&n=VujDPUxuwnzBGC46&q=85&s=d898ea6e9b6d95ff6d09b7a189ffaa67 1650w, https://mintcdn.com/docs-staging-feat-docs-5551-enterprise-connect/VujDPUxuwnzBGC46/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=2500&fit=max&auto=format&n=VujDPUxuwnzBGC46&q=85&s=e272aeccc9975139c9a180e35ecf9b49 2500w" />
   </Frame>

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