ออบเจ็กต์: AuthenticationAuthorizationResponse
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เนื้อหาการตอบกลับ
ออบเจ็กต์ที่ส่งระหว่างการตอบกลับการตรวจสอบสิทธิ์
ตัวอย่างการตอบกลับ JSON แบบข้อความที่ชัดเจนมีดังนี้
{
"requestId": "375dhjf9-Uydd="
"authorizations": ["LIST_ACCOUNTS", "ASSOCIATE_ACCOUNT"]
}
AuthenticationAuthorizationResponse
ได้รับการเข้ารหัสและลงนามโดยใช้ PGP หรือ JWS+JWE
นอกจากนี้ ค่านี้ยังเข้ารหัส Web-safe 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 เดียวกันกับที่ส่งเข้ามา
|
สงวนลิขสิทธิ์ Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-25 UTC"],[],["The `AuthenticationAuthorizationResponse` contains a `requestId` (string) and `authorizations` (repeated string). The `requestId` is used to prevent replay attacks, and `authorizations` are checked against the initial request. This JSON data is encrypted and signed using PGP or JWS+JWE, then encoded using `Base64UrlEncode`. The example shows how clear text JSON, including request ID and authorization types like \"LIST_ACCOUNTS\" and \"ASSOCIATE_ACCOUNT,\" is processed.\n"]]