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 ( |
Fields | |
---|---|
association |
OPTIONAL: Reflected back by the payment integrator to Google. This allows Google to check that the associationId passed back is the same associationId passed in. This is required if it is present on the request. |
request |
REQUIRED: Reflected back by the payment integrator to Google. This allows Google to prevent replay attacks. |
authentication |
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 |
Fields | |
---|---|
Union field
|
|
success |
Authentication was successful. |
cancelled |
User canceled the flow manually and the flow should be aborted. |
fatal |
Authentication failed for a fatal reason and the flow should be aborted. |
Empty
This type has no fields.
This object is used for extensibility because booleans and enumerations often need to be extended with extra data. The implementer uses it to determine presence. The enumeration this represents may be extended to contain data in future versions.
The JSON representation for Empty
is empty JSON object {}
.