대화형 작업이 2023년 6월 13일에 지원 중단되었습니다. 자세한 내용은
대화 작업 지원 중단을 참고하세요.
Method: encryptSecret
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
계정 연결 과정에서 사용되는 OAuth 클라이언트 보안 비밀번호를 암호화합니다. 클라이언트 보안 비밀을 처음으로 암호화하거나 (예: 첫 번째 푸시 전 또는 클라이언트 보안 비밀 변경 후) 최신 기본 키 버전을 사용하여 클라이언트 보안 비밀번호를 다시 암호화하는 데 사용할 수 있습니다 (키 순환 고려).
HTTP 요청
POST https://actions.googleapis.com/v2:encryptSecret
URL은 gRPC 트랜스코딩 구문을 사용합니다.
요청 본문
요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.
JSON 표현 |
{
"clientSecret": string
} |
필드 |
clientSecret |
string
필수 항목입니다. 계정 연결 클라이언트 보안 비밀번호 일반 텍스트입니다.
|
응답 본문
성공할 경우 응답 본문에 다음 구조의 데이터가 포함됩니다.
v2.encryptSecret에 대한 RPC 응답.
필드 |
accountLinkingSecret |
object (AccountLinkingSecret )
암호화된 계정 연결 클라이언트 보안 비밀번호와 보안 비밀을 암호화하는 데 사용되는 키 버전을 포함합니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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,["# Method: encryptSecret\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.EncryptSecretResponse.SCHEMA_REPRESENTATION)\n\nEncrypts the OAuth client secret used in account linking flows. This can be used to encrypt the client secret for the first time (e.g. before the first push or after changing the client secret) or to re-encrypt a client secret using the latest primary key version (considering key rotation).\n\n### HTTP request\n\n`POST https://actions.googleapis.com/v2:encryptSecret`\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| ``` { \"clientSecret\": string } ``` |\n\n| Fields ||\n|----------------|-----------------------------------------------------------------|\n| `clientSecret` | `string` Required. The account linking client secret plaintext. |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nRPC response for v2.encryptSecret.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"accountLinkingSecret\": { object (/assistant/actions/api/reference/rest/v2/AccountLinkingSecret) } } ``` |\n\n| Fields ||\n|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accountLinkingSecret` | `object (`[AccountLinkingSecret](/assistant/actions/api/reference/rest/v2/AccountLinkingSecret)`)` Contains the encrypted account linking client secret and the key version used to encrypt the secret. |"]]