Method: encryptSecret
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
खाता लिंक करने के फ़्लो में इस्तेमाल किए गए OAuth क्लाइंट सीक्रेट को एन्क्रिप्ट करता है. इसका इस्तेमाल पहली बार क्लाइंट सीक्रेट को एन्क्रिप्ट करने के लिए किया जा सकता है.जैसे, पहली बार पुश करने से पहले या क्लाइंट सीक्रेट बदलने के बाद. इसके अलावा, इसका इस्तेमाल कुंजी के नए वर्शन (की रोटेशन पर ध्यान देते हुए) का इस्तेमाल करके, क्लाइंट सीक्रेट को फिर से एन्क्रिप्ट करने के लिए भी किया जा सकता है.
एचटीटीपी अनुरोध
POST https://actions.googleapis.com/v2:encryptSecret
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, यहां दिए गए स्ट्रक्चर का डेटा शामिल होता है:
JSON के काेड में दिखाना |
{
"clientSecret": string
} |
फ़ील्ड |
clientSecret |
string
ज़रूरी है. खाता लिंक करने वाला क्लाइंट सीक्रेट सादा टेक्स्ट.
|
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
v2.encryptSecret के लिए RPC जवाब.
फ़ील्ड |
accountLinkingSecret |
object (AccountLinkingSecret )
इसमें, खाता लिंक करने वाला एन्क्रिप्ट (सुरक्षित) किया गया क्लाइंट सीक्रेट और सीक्रेट को एन्क्रिप्ट करने के लिए इस्तेमाल की गई कुंजी का वर्शन शामिल होता है.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eEncrypts the OAuth client secret used in account linking flows for initial encryption, re-encryption, or key rotation.\u003c/p\u003e\n"],["\u003cp\u003eSends an HTTP POST request to \u003ccode\u003ehttps://actions.googleapis.com/v2:encryptSecret\u003c/code\u003e with the client secret in the request body.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a JSON object with the \u003ccode\u003eclientSecret\u003c/code\u003e field containing the plaintext client secret.\u003c/p\u003e\n"],["\u003cp\u003eThe response body, upon success, includes the encrypted account linking client secret and the encryption key version within an \u003ccode\u003eaccountLinkingSecret\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]