Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
אובייקט: AuthenticationResponse
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
גוף התשובה
האובייקט נשלח במהלך תגובת האימות.
דוגמה לתשובת JSON עם טקסט ברור:
{
"associationId": "88ydEE-ioiwe==",
"requestId": "375dhjf9-Uydd="
}
השדה AuthenticationResponse מוצפן וחתום באמצעות PGP או JWE+JWS.
כמו כן, הערך הזה הוא בקידוד base64 בטוח לשימוש באינטרנט. בהמשך נקרא לקידוד הזה Base64UrlEncode. במילים אחרות, גרסת ה-JSON של הטקסט הנקי של
צריך להעביר את AuthenticationRequest באמצעות הפונקציות הבאות:
Base64UrlEncode(
PGPSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
או
Base64UrlEncode(
JWSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
| ייצוג JSON |
{
"associationId": string,
"requestId": string,
"authenticationResult": {
object (AuthenticationResult) }
}
|
| שדות |
associationId |
string
שחזור של שילוב התשלומים ב-Google. כך Google יכולה לבדוק ש-associationId שהוחזר הוא אותו gspAssociationId שהוחדר.
השדה הזה נדרש אם הוא מופיע בבקשה.
|
requestId |
string
חובה: הנתון הזה מוחזר ל-Google על ידי שילוב התשלומים. כך Google יכולה למנוע התקפות שליחה מחדש.
|
authenticationResult |
object (AuthenticationResult)
תוצאת האימות. לגבי תהליכים שבהם לא מתבצעת קריאה נוספת אל הכלי לשילוב תשלומים לאחר שהאימות בוצע, יש לכלול את התוצאה בתשובה כדי להבטיח את תקינות התוצאה.
|
AuthenticationResult
| ייצוג ב-JSON |
{
// Union field result can be only one of the following:
"success": {
object (Empty)
},
"cancelled": {
object (Empty)
},
"fatalError": {
object (Empty)
}
// End of list of possible types for union field result.
}
|
| שדות |
שדה האיחוד result. הערך של result יכול להיות רק אחת מהאפשרויות הבאות: |
success |
object (Empty)
האימות הצליח.
|
cancelled |
object (Empty)
המשתמש ביטל את התהליך באופן ידני והתהליך אמור להיות הופסק.
|
fatalError |
object (Empty)
האימות נכשל מסיבה חמורה, ועליך לבטל את הזרימה.
|
כל הזכויות שמורות. Java הוא סימן מסחרי רשום של Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-02-18 (שעון 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"]],["עדכון אחרון: 2026-02-18 (שעון UTC)."],[],["The authentication response, a JSON object, must be encrypted (PGP or JWE+JWS) and web-safe base64 encoded (`Base64UrlEncode`). It includes `associationId` (a reflected identifier), and a required `requestId` (to prevent replay attacks). Additionally, `authenticationResult` indicates success, user cancellation, or fatal error. The clear text version, like `{\"associationId\": \"...\", \"requestId\": \"...\"}`, is signed, encrypted and then encoded as indicated. `associationId` must be present in the response if it was in the request.\n"]]