Obiekt: AuthenticationResponse
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Treść odpowiedzi
Obiekt wysyłany podczas odpowiedzi uwierzytelniania.
Przykładowa odpowiedź JSON z czytelnym tekstem:
{
"associationId": "88ydEE-ioiwe==",
"requestId": "375dhjf9-Uydd="
}
AuthenticationResponse
jest szyfrowany i podpisany za pomocą PGP lub JWE+JWS.
Dodatkowo ta wartość jest zakodowana w sieci w formacie base64. Ten kod jest poniżej określany jako Base64UrlEncode
. Innymi słowy, wersja JSON AuthenticationRequest
w postaci zwykłego tekstu musi być przekazywana przez te funkcje:
Base64UrlEncode(
PGPSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
lub
Base64UrlEncode(
JWSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
Zapis JSON |
{
"associationId": string,
"requestId": string,
"authenticationResult": {
object (AuthenticationResult ) }
}
|
Pola |
associationId |
string
Odzwierciedlenie przez integratora płatności do Google. Dzięki temu
Google, by sprawdzić, czy zwrócona wartość associationId jest
te same gspAssociationId .
Jest to wymagane, jeśli występuje w żądaniu.
|
requestId |
string
WYMAGANE: informacje przekazywane przez integratora płatności do Google. Dzięki temu Google zapobiega atakom typu replay.
|
authenticationResult |
object (AuthenticationResult )
Wynik uwierzytelnienia. W przypadku procesów, w których po uwierzytelnieniu nie następuje kolejne wywołanie interfejsu Payment Integrator, wynik musi być uwzględniony w odpowiedzi, aby zapewnić integralność wyniku.
|
AuthenticationResult
Zapis 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 .
}
|
Pola |
Pole unii result . result może być tylko jednym z tych elementów:
|
success |
object (Empty )
Uwierzytelniono.
|
cancelled |
object (Empty )
Użytkownik ręcznie anulował przepływ i powinien zostać przerwany.
|
fatalError |
object (Empty )
Uwierzytelnianie nie powiodło się z powodu krytycznego. Przepływ powinien zostać przerwany.
|
Wszelkie prawa zastrzeżone. Java jest zastrzeżonym znakiem towarowym firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]