物件:AuthenticationAuthorizationRequest

要求主體

驗證授權要求期間傳送的物件。

明文 JSON 要求示例如下:

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

AuthenticationAuthorizationRequest 使用 PGP 或 JWS+JWE 進行加密及簽署。此外,這個值會採用具網路安全性的 Base64 編碼方式。這種編碼在下方稱為 Base64UrlEncode。也就是說,AuthenticationRequest 的明文 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

必要項目:此要求的 ID。

authorizations

repeated string

必要項目:付款整合商已退回給 Google。這樣 Google 就能檢查傳遞的 authorizations 是否與傳入的 authorizations 相同。