Method: encryptSecret
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Criptografa a chave secreta do cliente OAuth usada nos fluxos de vinculação de contas. Isso pode ser usado para criptografar a chave secreta do cliente pela primeira vez (por exemplo, antes do primeiro envio ou depois de alterar a chave secreta do cliente) ou para recriptografar uma chave secreta do cliente usando a versão mais recente da chave primária (considerando a rotação de chaves).
Solicitação HTTP
POST https://actions.googleapis.com/v2:encryptSecret
O URL usa a sintaxe de transcodificação gRPC.
Corpo da solicitação
O corpo da solicitação contém dados com a seguinte estrutura:
Representação JSON |
{
"clientSecret": string
} |
Campos |
clientSecret |
string
Obrigatório. O texto simples da chave secreta do cliente para vinculação de contas.
|
Corpo da resposta
Se bem-sucedido, o corpo da resposta incluirá dados com a estrutura a seguir:
Resposta RPC para v2.encryptSecret.
Campos |
accountLinkingSecret |
object (AccountLinkingSecret )
Contém a chave secreta do cliente de vinculação de conta criptografada e a versão da chave usada para criptografar o secret.
|
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 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. |"]]