会話型アクションのサポートは 2023 年 6 月 13 日に終了しました。詳細については、
会話型アクションの廃止をご覧ください。
リクエストの検証(Dialogflow)
会話 Webhook へのリクエストは、ヘッダーに含まれる次の形式の認可トークンで署名されています。
authorization: "<JWT token>"
認証トークンは JSON Web Token 形式に準拠しています。
[Audience] フィールドの値は、対象グループの Actions Console プロジェクト ID と
クリックします。署名を検証するには、トークンを展開してオーディエンス フィールドを確認します。
アプリのプロジェクト ID と一致します。そのためには、JWT 互換の
(Google API Node.js クライアントなど)を使用して、
または、Actions on Google Node.js クライアント ライブラリを直接使用して
ActionsSdkOptions#verification
オプション。
const {actionssdk} = require('actions-on-google');
const app = actionssdk({verification: 'nodejs-cloud-test-project-1234'});
// HTTP Code 403 will be thrown by default on verification error per request.
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-15 UTC。
[null,null,["最終更新日 2024-10-15 UTC。"],[[["Conversational webhook requests are signed with a JWT token in the authorization header for security."],["The JWT token's audience field should match your Actions Console project ID for verification."],["You can verify the token using JWT libraries or the Actions on Google Node.js Client Library's built-in verification option."]]],[]]