Method: decryptSecret
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
راز مشتری OAuth مورد استفاده در جریان های پیوند حساب را رمزگشایی می کند. این را می توان برای مشاهده راز مشتری (به عنوان مثال پس از کشیدن یک پروژه) استفاده کرد.
درخواست HTTP
POST https://actions.googleapis.com/v2:decryptSecret
URL از دستور GRPC Transcoding استفاده می کند.
درخواست بدن
بدنه درخواست حاوی داده هایی با ساختار زیر است:
نمایندگی JSON |
---|
{
"encryptedClientSecret": string
} |
فیلدها |
---|
encryptedClientSecret | string ( bytes format) مورد نیاز. حسابی که متن رمزی مخفی مشتری را پیوند می دهد. رشته ای با کد base64. |
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی داده هایی با ساختار زیر است:
پاسخ RPC برای v2.decryptSecret.
نمایندگی JSON |
---|
{
"clientSecret": string
} |
فیلدها |
---|
clientSecret | string حسابی که متن ساده مخفی مشتری را پیوند می دهد. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThis endpoint decrypts the OAuth client secret used in account linking flows, allowing you to view it after actions like pulling a project.\u003c/p\u003e\n"],["\u003cp\u003eIt uses an HTTP POST request to \u003ccode\u003ehttps://actions.googleapis.com/v2:decryptSecret\u003c/code\u003e with the encrypted client secret in the request body.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain the \u003ccode\u003eencryptedClientSecret\u003c/code\u003e as a base64-encoded string.\u003c/p\u003e\n"],["\u003cp\u003eThe response body, if successful, will contain the decrypted \u003ccode\u003eclientSecret\u003c/code\u003e as plain text.\u003c/p\u003e\n"]]],[],null,["# Method: decryptSecret\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.DecryptSecretResponse.SCHEMA_REPRESENTATION)\n\nDecrypts the OAuth client secret used in account linking flows. This can be used to view the client secret (e.g. after pulling a project).\n\n### HTTP request\n\n`POST https://actions.googleapis.com/v2:decryptSecret`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation ||\n|---------------------------------------------|---|\n| ``` { \"encryptedClientSecret\": string } ``` |\n\n| Fields ||\n|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `encryptedClientSecret` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` Required. The account linking client secret ciphertext. A base64-encoded string. |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nRPC response for v2.decryptSecret.\n\n| JSON representation ||\n|------------------------------------|---|\n| ``` { \"clientSecret\": string } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------|\n| `clientSecret` | `string` The account linking client secret plaintext. |"]]