物件:AuthenticationAuthorizationResponse

回應主體

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

明文 JSON 回應示例如下:

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

AuthenticationAuthorizationResponse 使用 PGP 或 JWS+JWE 進行加密及簽署。此外,這個值會採用具網路安全性的 Base64 編碼方式。這種編碼在下方稱為 Base64UrlEncode。也就是說,AuthenticationAuthorizationRequest 的明文 JSON 版本必須透過下列函式傳遞:

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 相同。