Object: AuthenticationResponse
Stay organized with collections
Save and categorize content based on your preferences.
Response body
Object sent during authentication response.
Here's an example of a clear text JSON response:
{
"associationId": "88ydEE-ioiwe==",
"requestId": "375dhjf9-Uydd="
}
The AuthenticationResponse
is encrypted and signed using PGP or JWE+JWS.
Further, this value is web-safe base64 encoded. This encoding is referred to below as
Base64UrlEncode
. In other words, the clear text JSON version of the
AuthenticationRequest
must be passed through the following functions:
Base64UrlEncode(
PGPSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
or
Base64UrlEncode(
JWSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
JSON representation |
{
"associationId": string,
"requestId": string,
"authenticationResult": {
object (AuthenticationResult ) }
}
|
Fields |
associationId |
string
Reflected back by the payment integrator to Google. This allows
Google to check that the associationId passed back is the
same gspAssociationId passed in.
This is required if it is present on the request.
|
requestId |
string
REQUIRED: Reflected back by the payment integrator to Google. This allows Google to prevent replay attacks.
|
authenticationResult |
object (AuthenticationResult )
The result of the authentication. For flows where there is no subsequent call to the Payment Integrator after the authentication has taken place, the result must be included in the response to ensure the integrity of the result.
|
AuthenticationResult
JSON representation |
{
// 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 .
}
|
Fields |
Union field result . result can be only one of the following:
|
success |
object (Empty )
Authentication was successful.
|
cancelled |
object (Empty )
User canceled the flow manually and the flow should be aborted.
|
fatalError |
object (Empty )
Authentication failed for a fatal reason and the flow should be aborted.
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 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"]]