物件:AuthenticationAuthorizationResponse

回應主體

驗證授權回應期間傳送的物件。

明文 JSON 回應範例如下:

  {
    "requestId": "375dhjf9-Uydd="
    "authorizations": ["LIST_ACCOUNTS", "ASSOCIATE_ACCOUNT"]
  }

AuthenticationAuthorizationResponse 使用 PGP 或 JWS+JWE 進行加密及簽署。此外,這個值也經過網路安全 Base64 編碼。這種編碼在下方稱為 Base64UrlEncode。也就是應用程式的明文 JSON 版本 必須通過以下設定:AuthenticationAuthorizationRequest 函式:

Base64UrlEncode(
  PGPSignAndEncrypt(
    '{"requestId": "375dhjf9-Uydd=",
      "authorizations": ["LIST_ACCOUNTS", "ASSOCIATE_ACCOUNT"]}'
  )
)

Base64UrlEncode(
  JWSignAndEncrypt(
    '{"requestId": "375dhjf9-Uydd=",
      "authorizations": ["LIST_ACCOUNTS", "ASSOCIATE_ACCOUNT"]}'
  )
)
JSON 表示法
{
  
  "requestId": string,
  "authorizations":  repeated string,
}
欄位
requestId

string

必要欄位:由付款整合服務供應商回傳給 Google。這有助於 Google 防範重送攻擊。

authorizations

repeated string

必要項目:由付款整合服務供應商回傳給 Google。這樣 Google 就能檢查 authorizations已傳回 傳遞的相同 authorizations