> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-docs-ia-custom-database-connections.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-docs-ia-custom-database-connections/bD6FiiMCLESx13S8/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?fit=max&auto=format&n=bD6FiiMCLESx13S8&q=85&s=94737fae12b8a74e015f792ee1d9355d" 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-docs-ia-custom-database-connections/bD6FiiMCLESx13S8/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=280&fit=max&auto=format&n=bD6FiiMCLESx13S8&q=85&s=c77b5de17dbe683e0c94dbe2e1c03e32 280w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/bD6FiiMCLESx13S8/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=560&fit=max&auto=format&n=bD6FiiMCLESx13S8&q=85&s=2c53e089a9451f353f8b136ce396ccc1 560w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/bD6FiiMCLESx13S8/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=840&fit=max&auto=format&n=bD6FiiMCLESx13S8&q=85&s=631a073f7ee17173973c9af77796fb46 840w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/bD6FiiMCLESx13S8/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=1100&fit=max&auto=format&n=bD6FiiMCLESx13S8&q=85&s=499f18a4643d7a8dd717c95b045e1ef3 1100w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/bD6FiiMCLESx13S8/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=1650&fit=max&auto=format&n=bD6FiiMCLESx13S8&q=85&s=f0f8770e686cccdaaed51c71de05fd84 1650w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/bD6FiiMCLESx13S8/docs/images/ja-jp/cdy7uua7fh8z/1sPNPKO6nuEDCuiYGRWSur/d85dc616170eaf2d7d5f321750863ccf/vault-connections-example.png?w=2500&fit=max&auto=format&n=bD6FiiMCLESx13S8&q=85&s=d1cd631dc841e25f5b57f64433bacae0 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-docs-ia-custom-database-connections/qOsCQFg3WPMPYukT/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?fit=max&auto=format&n=qOsCQFg3WPMPYukT&q=85&s=5009e4fc1f31b151c2a9f9b965aa37d9" 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-docs-ia-custom-database-connections/qOsCQFg3WPMPYukT/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=280&fit=max&auto=format&n=qOsCQFg3WPMPYukT&q=85&s=8d4254e82d08d89c77817ba3b4460c4f 280w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/qOsCQFg3WPMPYukT/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=560&fit=max&auto=format&n=qOsCQFg3WPMPYukT&q=85&s=9573c4098b4ec2606741520882a7949b 560w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/qOsCQFg3WPMPYukT/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=840&fit=max&auto=format&n=qOsCQFg3WPMPYukT&q=85&s=4af6d2e4536dfb6f2e976485b0c82c1e 840w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/qOsCQFg3WPMPYukT/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=1100&fit=max&auto=format&n=qOsCQFg3WPMPYukT&q=85&s=3b608c6e3f2597c4558ef1922f75e18f 1100w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/qOsCQFg3WPMPYukT/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=1650&fit=max&auto=format&n=qOsCQFg3WPMPYukT&q=85&s=331e8b753516dfb8b48689d3bde40f30 1650w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/qOsCQFg3WPMPYukT/docs/images/ja-jp/cdy7uua7fh8z/1AsaznhRKxm5LZxPlcbfUw/10e5a8af700aab909f5b03fcd266da7e/twilio-vault-connection.png?w=2500&fit=max&auto=format&n=qOsCQFg3WPMPYukT&q=85&s=ddaff765d5f5df2f74127b659cf6676c 2500w" />
   </Frame>

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

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

   <Frame>
     <img src="https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/H0d6hG_ktRHmyldU/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?fit=max&auto=format&n=H0d6hG_ktRHmyldU&q=85&s=b1f986613946fc1d42fac615bd20b6f4" 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-docs-ia-custom-database-connections/H0d6hG_ktRHmyldU/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=280&fit=max&auto=format&n=H0d6hG_ktRHmyldU&q=85&s=a6aa2af80af66b443f99a79f19dc995c 280w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/H0d6hG_ktRHmyldU/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=560&fit=max&auto=format&n=H0d6hG_ktRHmyldU&q=85&s=c4e7870b10d0a4ed5814f71cff895262 560w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/H0d6hG_ktRHmyldU/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=840&fit=max&auto=format&n=H0d6hG_ktRHmyldU&q=85&s=5b1a8721fd3a1e34ff2a904758101d47 840w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/H0d6hG_ktRHmyldU/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=1100&fit=max&auto=format&n=H0d6hG_ktRHmyldU&q=85&s=54b89c46e2a242046269dcecbb677a11 1100w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/H0d6hG_ktRHmyldU/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=1650&fit=max&auto=format&n=H0d6hG_ktRHmyldU&q=85&s=74857a0e7e3ec9d32c27d2d60709e9c4 1650w, https://mintcdn.com/docs-staging-docs-ia-custom-database-connections/H0d6hG_ktRHmyldU/docs/images/ja-jp/cdy7uua7fh8z/yobXanutPRCO3FWek8cOk/bc29e39fb8593cff35e2738234bfe6fe/twilio-vault-settings.png?w=2500&fit=max&auto=format&n=H0d6hG_ktRHmyldU&q=85&s=b5888763f1e0a1fb460fa88601d8dbc9 2500w" />
   </Frame>

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