अनुरोधों की पुष्टि की जा रही है (Dialogflow)
बातचीत वाले आपके वेबहुक के अनुरोधों को अनुमति वाले टोकन से साइन किया जाता है
हेडर में, नीचे दिए गए फ़ॉर्मैट का इस्तेमाल करें:
authorization: "<JWT token>"
पुष्टि करने वाला टोकन, JSON वेब टोकन फ़ॉर्मैट के हिसाब से होता है,
जहां ऑडियंस फ़ील्ड की वैल्यू,
ऐप खोलें. हस्ताक्षर की पुष्टि करने के लिए, टोकन को अनपैक करें और ऑडियंस फ़ील्ड को पक्का करें
ऐप्लिकेशन के प्रोजेक्ट आईडी से मेल खाता हो. यह काम 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.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]],["Requests include an authorization header with a JSON Web Token (JWT). The token's audience field must match the Actions Console project ID. Verify the token's signature using a JWT library or the `ActionsSdkOptions#verification` option in the Actions on Google Node.js Client Library. This can be set using the `actionssdk` method with the project ID. Failure to verify will result in a HTTP 403 error.\n"]]