{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"認証コードを生成"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"認証コードを生成","__idx":0},"children":["認証コードを生成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ノードタイプ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["browser_get2faCode"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"機能","__idx":1},"children":["機能"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定した認証アプリのシークレットから、現在の時間ベースのコードを生成します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"デスクトップクライアントでの設定","__idx":2},"children":["デスクトップクライアントでの設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/get2fa-code.881db20f1e13f1257ced12091ad41dce4366322b4c9e58bda81c7ebe008fa6d3.0538f3a9.webp","alt":"デスクトップクライアントでの「認証コードを生成」の設定"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MoreLogin デスクトップクライアント V2.73.101 の英語インターフェースで撮影しました。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"入力","__idx":3},"children":["入力"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これらのフィールドは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.browserUi.inputs"]}," に置きます。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"フィールド"},"children":["フィールド"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"型または値"},"children":["型または値"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"スキーマで必須"},"children":["スキーマで必須"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"実行時の既定値"},"children":["実行時の既定値"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明と制約"},"children":["説明と制約"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["secret"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["いいえ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2FA のシークレット"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"モードごとの要件と制限","__idx":4},"children":["モードごとの要件と制限"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["secret は Base32 のキーです。直接入力する場合は、英字、数字、スペースだけを使用でき、最大 100 文字です（書き込み時に検証されます。参照される変数の値は検証されません）。実行時には、まず単語構成文字以外の文字（スペース、-、= など）がすべて削除されます。実際の 6 桁の TOTP が生成され、固定のデモ用コードは使用されません。expiresAt は、現在の期間（30 秒）が終了する時点のデスクトップクライアントのローカル時刻で、形式は YYYY-MM-DD HH:mm:ss です。remainingSeconds は残りの秒数です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["検証コード：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_NODE_INPUT_INVALID"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"入力の参照","__idx":5},"children":["入力の参照"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"フィールド"},"children":["フィールド"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"許可される形式"},"children":["許可される形式"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["secret"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["literal"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["template"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"出力","__idx":6},"children":["出力"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"出力フィールド"},"children":["出力フィールド"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"型または値"},"children":["型または値"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["code"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["expiresAt"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["remainingSeconds"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["number"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["公開されているフィールドは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["${nodeId.data.field}"]}," として参照します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"json-の例","__idx":7},"children":["JSON の例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ワークフローの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nodes"]}," 配列、または別のノードの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blocks"]}," に入れる完全なノードオブジェクトです。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["totpSecret"]}," は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["workflow.variables"]}," で宣言された非公開の初期パラメーターです。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"totp_code\",\n  \"type\": \"browser_get2faCode\",\n  \"data\": {\n    \"title\": \"Generate the sign-in code\",\n    \"browserAction\": \"get2faCode\",\n    \"browserUi\": {\n      \"inputs\": {\n        \"secret\": \"${totpSecret}\"\n      },\n      \"exception\": {\n        \"timeout\": 30000,\n        \"policy\": \"interrupt\"\n      }\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/browser-rpa/nodes"},"children":["ノードカタログに戻る"]}]}]},"headings":[{"value":"認証コードを生成","id":"認証コードを生成","depth":1},{"value":"機能","id":"機能","depth":2},{"value":"デスクトップクライアントでの設定","id":"デスクトップクライアントでの設定","depth":2},{"value":"入力","id":"入力","depth":2},{"value":"モードごとの要件と制限","id":"モードごとの要件と制限","depth":2},{"value":"入力の参照","id":"入力の参照","depth":2},{"value":"出力","id":"出力","depth":2},{"value":"JSON の例","id":"json-の例","depth":2}],"frontmatter":{"seo":{"title":"認証コードを生成"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/browser-rpa/nodes/network/get2fa-code","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}