Oggetto: AuthenticationResponse
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Corpo della risposta
Oggetto inviato durante la risposta di autenticazione.
Ecco un esempio di risposta JSON in chiaro:
{
"associationId": "88ydEE-ioiwe==",
"requestId": "375dhjf9-Uydd="
}
AuthenticationResponse
è criptato e firmato utilizzando PGP o JWE+JWS.
Inoltre, questo valore è sicuro per il web con codifica Base64. Questa codifica è indicata di seguito come
Base64UrlEncode
. In altre parole, la versione JSON in testo normale di AuthenticationRequest
deve essere passata alle seguenti funzioni:
Base64UrlEncode(
PGPSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
o
Base64UrlEncode(
JWSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
Rappresentazione JSON |
{
"associationId": string,
"requestId": string,
"authenticationResult": {
object (AuthenticationResult ) }
}
|
Campi |
associationId |
string
Rimandata da Google all'integratore dei pagamenti. In questo modo,
Google può verificare che il valore associationId restituito sia lo stesso
valore gspAssociationId passato.
Questo valore è obbligatorio se è presente nella richiesta.
|
requestId |
string
OBBLIGATORIO: viene restituito da Google all'integratore dei pagamenti. In questo modo Google può prevenire gli attacchi di ripetizione.
|
authenticationResult |
object (AuthenticationResult )
Il risultato dell'autenticazione. Per i flussi in cui non sono previste chiamate successive all'integratore pagamenti dopo che è avvenuta l'autenticazione, il risultato deve essere incluso nella risposta per garantire l'integrità del risultato.
|
AuthenticationResult
Rappresentazione 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 .
}
|
Campi |
Campo unione result . result può essere solo uno dei seguenti:
|
success |
object (Empty )
L'autenticazione è andata a buon fine.
|
cancelled |
object (Empty )
L'utente ha annullato manualmente il flusso, che dovrebbe essere interrotto.
|
fatalError |
object (Empty )
L'autenticazione non è riuscita per un motivo irreversibile e il flusso deve essere interrotto.
|
Tutti i diritti riservati. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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"]]