Obiekt: AuthenticationRequest
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Treść żądania
Obiekt wysłany podczas żądania uwierzytelnienia.
Oto przykład żądania JSON z czystym tekstem:
{
"requestId": "375dhjf9-Uydd="
}
AuthenticationRequest
jest szyfrowany i podpisany za pomocą PGP lub JWE+JWS.
Ponadto ta wartość jest zakodowana w formacie base64, który jest obsługiwany w internecie. Ten kod jest poniżej określany jako Base64UrlEncode
. Inaczej mówiąc, czytelna wersja JSON obiektu
Funkcję AuthenticationRequest
należy przekazać przez te funkcje:
Base64UrlEncode(
PGPSignAndEncrypt(
'{"requestId": "375dhjf9-Uydd="}'
)
)
lub
Base64UrlEncode(
JWSignAndEncrypt(
'{"requestId": "375dhjf9-Uydd="}'
)
)
Zapis JSON |
{
"requestId": string,
"associationId": string,
}
|
Pola |
requestId |
string
WYMAGANE: identyfikator tego żądania.
|
associationId |
string
OPCJONALNIE: identyfikator reprezentujący powiązanie między kontem Google klienta a jego kontem u dostawcy. Jeśli ten proces uwierzytelniania jest używany do ponownego uwierzytelnienia użytkownika, który przeszedł już proces tworzenia powiązania, to pole identyfikuje konkretne konto u dostawcy, które użytkownik musi uwierzytelnić. Dzięki temu możesz mieć pewność, że użytkownik nie (np.) przypadkowo nie uwierzytelni się na innym koncie. Jeśli to pole jest podane, integrator płatności musi się upewnić, że uwierzytelniane konto jest powiązane z tym identyfikatorem associationId. W przeciwnym razie musi zwrócić błąd.
|
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."],[[["Authentication requests contain a request ID and, optionally, an association ID, within a JSON object."],["The JSON request body is encrypted and signed using either PGP or JWE+JWS for security."],["This secured data is then encoded using web-safe base64 encoding before transmission."],["The `requestId` is a required field that uniquely identifies each authentication request."],["Including the `associationId` is optional but helps link the Google Account with the vendor's customer account for re-authentication purposes."]]],["The `AuthenticationRequest` is a JSON object containing a `requestId` (required string identifier) and an optional `associationId` (string linking Google and vendor accounts). This JSON is encrypted and signed using PGP or JWE+JWS, then encoded using Base64UrlEncode. The resulting string is sent during the authentication. The Payment Integrator, if provided with an `associationId`, is responsible for validating that the account the user authenticates, is the correct account tied to the `associationId`.\n"]]