ऑब्जेक्ट: AuthenticationResponse
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
जवाब का मुख्य भाग
पुष्टि करने के दौरान ऑब्जेक्ट भेजा गया.
यहां साफ़ टेक्स्ट वाले JSON रिस्पॉन्स का उदाहरण दिया गया है:
{
"associationId": "88ydEE-ioiwe==",
"requestId": "375dhjf9-Uydd="
}
AuthenticationResponse
को PGP या JWE+JWS का इस्तेमाल करके एन्क्रिप्ट किया जाता है और उस पर हस्ताक्षर किया जाता है.
यह वैल्यू, वेब पर सुरक्षित रहने वाले base64 कोड में बदली गई है. इस एन्कोडिंग को नीचे इस रूप में बताया गया है
Base64UrlEncode
. दूसरे शब्दों में, JSON का साफ़ टेक्स्ट वाला 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 और/या इसके सहयोगियों का एक पंजीकृत ट्रेडमार्क है.
आखिरी बार 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 `AuthenticationResponse` object, sent during authentication, contains `associationId`, `requestId`, and `authenticationResult`."],["This object is encrypted, signed (using PGP or JWE+JWS), and encoded with web-safe base64."],["`authenticationResult` indicates the outcome: `success`, `cancelled`, or `fatalError`."],["`associationId` and `requestId` are used for validation and preventing replay attacks, respectively."]]],["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"]]