אובייקט: AuthenticationRequest
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
גוף הבקשה
אובייקט שנשלח במהלך בקשת האימות.
הנה דוגמה לבקשת JSON בטקסט ללא הצפנה:
{
"requestId": "375dhjf9-Uydd="
}
השדה AuthenticationRequest
מוצפן וחתום באמצעות PGP או JWE+JWS.
כמו כן, הערך הזה הוא בקידוד base64 בטוח לשימוש באינטרנט. הקידוד הזה נקרא
Base64UrlEncode
במילים אחרות, גרסת ה-JSON של הטקסט הנקי של
צריך להעביר את AuthenticationRequest
באמצעות הפונקציות הבאות:
Base64UrlEncode(
PGPSignAndEncrypt(
'{"requestId": "375dhjf9-Uydd="}'
)
)
או
Base64UrlEncode(
JWSignAndEncrypt(
'{"requestId": "375dhjf9-Uydd="}'
)
)
ייצוג ב-JSON |
{
"requestId": string,
"associationId": string,
}
|
שדות |
requestId |
string
חובה: מזהה הבקשה הזו.
|
associationId |
string
OPTIONAL: המזהה שמייצג את הקשר בין חשבון Google של לקוח לבין חשבון של לקוח אצל הספק. אם תהליך האימות הזה משמש לאימות מחדש של משתמש שכבר עבר תהליך שיוך, השדה הזה מזהה את החשבון הספציפי אצל הספק שהמשתמש צריך לאמת. כך ניתן לוודא שהמשתמש לא יבצע (למשל) אימות בטעות באמצעות חשבון אחר. אם השדה הזה מסופק, שילוב התשלומים צריך לוודא שהחשבון שמאומת קשור למזהה השיוך הזה, אחרת הוא צריך להחזיר הודעה על כשל.
|
כל הזכויות שמורות. 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"]]