ออบเจ็กต์: AuthenticationAuthorizationRequest
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เนื้อหาของคำขอ
ออบเจ็กต์ที่ส่งในระหว่างคำขอให้สิทธิ์การตรวจสอบสิทธิ์
ตัวอย่างคำขอ JSON แบบข้อความที่ชัดเจนมีดังนี้
{
"requestId": "375dhjf9-Uydd="
"authorizations": ["LIST_ACCOUNTS", "ASSOCIATE_ACCOUNT"]
}
AuthenticationAuthorizationRequest
ได้รับการเข้ารหัสและลงนามโดยใช้ PGP หรือ JWS+JWE
นอกจากนี้ ค่านี้ยังเข้ารหัส Web-safe 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
ต้องระบุ: ตัวระบุสำหรับคำขอนี้
|
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 `AuthenticationAuthorizationRequest` is a JSON object containing a `requestId` (a unique string identifier) and an `authorizations` array (strings indicating requested permissions). This object, in clear text, is signed and encrypted using either PGP or JWS+JWE. The result is then encoded using Base64UrlEncode. This process is detailed with an example and the required JSON field structure is defined, ensuring that the received authorizations match the ones requested.\n"]]