ออบเจ็กต์: AuthenticationRequest
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เนื้อหาของคำขอ
ออบเจ็กต์ที่ส่งระหว่างคําขอตรวจสอบสิทธิ์
ตัวอย่างคำขอ JSON แบบข้อความที่ชัดเจนมีดังนี้
{
"requestId": "375dhjf9-Uydd="
}
AuthenticationRequest
ได้รับการเข้ารหัสและลงนามโดยใช้ PGP หรือ JWE+JWS
นอกจากนี้ ค่านี้ยังเข้ารหัส Web-safe base64 ด้วย ซึ่งเราจะเรียกการโค้ดนี้ว่า Base64UrlEncode
กล่าวคือ AuthenticationRequest
เวอร์ชัน JSON แบบข้อความที่ชัดเจนต้องส่งผ่านฟังก์ชันต่อไปนี้
Base64UrlEncode(
PGPSignAndEncrypt(
'{"requestId": "375dhjf9-Uydd="}'
)
)
หรือ
Base64UrlEncode(
JWSignAndEncrypt(
'{"requestId": "375dhjf9-Uydd="}'
)
)
การแสดง JSON |
{
"requestId": string,
"associationId": string,
}
|
ช่อง |
requestId |
string
ต้องระบุ: ตัวระบุสำหรับคำขอนี้
|
associationId |
string
ไม่บังคับ: รหัสที่แสดงการเชื่อมโยงระหว่างบัญชี Google ของลูกค้ากับบัญชีของลูกค้ากับผู้ให้บริการ หากใช้ขั้นตอนการตรวจสอบสิทธิ์นี้เพื่อตรวจสอบสิทธิ์ผู้ใช้ที่ผ่านขั้นตอนการเชื่อมโยงแล้วอีกครั้ง ช่องนี้จะระบุบัญชีเฉพาะกับผู้ให้บริการซึ่งผู้ใช้ต้องตรวจสอบสิทธิ์ วิธีนี้ช่วยให้มั่นใจได้ว่าผู้ใช้ไม่ได้ (เช่น) ตรวจสอบสิทธิ์โดยใช้บัญชีอื่นโดยไม่ตั้งใจ หากระบุช่องนี้ ผู้ผสานรวมการชำระเงินต้องตรวจสอบว่าบัญชีที่ตรวจสอบสิทธิ์เชื่อมโยงกับ associationId นี้ มิเช่นนั้นจะต้องแสดงผลลัพธ์เป็น "ไม่สำเร็จ"
|
สงวนลิขสิทธิ์ 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"],[[["Authentication requests contain a request ID and, optionally, an association ID, within a JSON object."],["The JSON request body is encrypted and signed using either PGP or JWE+JWS for security."],["This secured data is then encoded using web-safe base64 encoding before transmission."],["The `requestId` is a required field that uniquely identifies each authentication request."],["Including the `associationId` is optional but helps link the Google Account with the vendor's customer account for re-authentication purposes."]]],["The `AuthenticationRequest` is a JSON object containing a `requestId` (required string identifier) and an optional `associationId` (string linking Google and vendor accounts). This JSON is encrypted and signed using PGP or JWE+JWS, then encoded using Base64UrlEncode. The resulting string is sent during the authentication. The Payment Integrator, if provided with an `associationId`, is responsible for validating that the account the user authenticates, is the correct account tied to the `associationId`.\n"]]