Method: installer.validate
验证 Professional Professional Installer (CPI) 的身份。
HTTP 请求
POST https://sasportal.googleapis.com/v1alpha1/installer:validate
网址采用 gRPC 转码语法。
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"installerId": string,
"secret": string,
"encodedSecret": string
} |
字段 |
installerId |
string
必需。认证专业安装程序数据库中的唯一安装程序 ID(每次安装费用 ID)。
|
secret |
string
必需。installer.generateSecret 返回的 Secret。
|
encodedSecret |
string
必需。使用 CPI 私钥签名的 JSON 网络令牌。载荷必须包含一个“secret”声明,其值为 Secret。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/sasportal
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-11-02。
[null,null,["最后更新时间 (UTC):2022-11-02。"],[[["Validates the identity of a Certified Professional Installer (CPI) using a provided installer ID, secret, and encoded secret."],["The request is sent as a `POST` request to the specific endpoint `https://sasportal.googleapis.com/v1alpha1/installer:validate`."],["Requires authorization with the `https://www.googleapis.com/auth/sasportal` OAuth scope."],["Successful validation results in an empty response body."]]],["The core actions involve validating a Certified Professional Installer (CPI). This is done via a `POST` request to `https://sasportal.googleapis.com/v1alpha1/installer:validate`. The request body, formatted as JSON, requires three string fields: `installerId` (CPI ID), `secret` (from `installer.generateSecret`), and `encodedSecret` (a JWT signed by the CPI's private key with a \"secret\" claim). A successful request returns an empty response body. Authorization requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]