Method: encryptSecret
Stay organized with collections
Save and categorize content based on your preferences.
Encrypts 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).
HTTP request
POST https://actions.googleapis.com/v2:encryptSecret
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
{
"clientSecret": string
} |
Fields |
clientSecret |
string
Required. The account linking client secret plaintext.
|
Response body
If successful, the response body contains data with the following structure:
RPC response for v2.encryptSecret.
Fields |
accountLinkingSecret |
object (AccountLinkingSecret )
Contains the encrypted account linking client secret and the key version used to encrypt the secret.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["Encrypts the OAuth client secret used in account linking flows for initial encryption, re-encryption, or key rotation."],["Sends an HTTP POST request to `https://actions.googleapis.com/v2:encryptSecret` with the client secret in the request body."],["The request body requires a JSON object with the `clientSecret` field containing the plaintext client secret."],["The response body, upon success, includes the encrypted account linking client secret and the encryption key version within an `accountLinkingSecret` object."]]],[]]