객체: AuthenticationResponse
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
응답 본문
인증 응답 중에 전송된 객체입니다.
다음은 일반 텍스트 JSON 응답의 예입니다.
{
"associationId": "88ydEE-ioiwe==",
"requestId": "375dhjf9-Uydd="
}
AuthenticationResponse
는 PGP 또는 JWE+JWS를 사용하여 암호화 및 서명됩니다.
또한 이 값은 웹 보안 base64로 인코딩됩니다. 이 인코딩은 아래에서 Base64UrlEncode
로 참조됩니다. 즉, AuthenticationRequest
의 일반 텍스트 JSON 버전은 다음 함수를 통해 전달되어야 합니다.
Base64UrlEncode(
PGPSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
또는
Base64UrlEncode(
JWSignAndEncrypt(
'{"associationId": "88ydEE-ioiwe==", "requestId": "375dhjf9-Uydd="}'
)
)
JSON 표현 |
{
"associationId": string,
"requestId": string,
"authenticationResult": {
object (AuthenticationResult ) }
}
|
필드 |
associationId |
string
결제 통합업체에서 Google에 반영합니다. 이렇게 하면
Google이 전달된 associationId 가
동일한 gspAssociationId 가 전달되었습니다.
요청에 포함된 경우 필수입니다.
|
requestId |
string
필수: 결제 통합업체가 Google에 반영했습니다. 이를 통해 Google은 재전송 공격을 방지할 수 있습니다.
|
authenticationResult |
object (AuthenticationResult )
인증 결과입니다. 인증 후 결제 통합업체에 대한 후속 호출이 없는 흐름의 경우 결과의 무결성을 보장하기 위해 결과를 응답에 포함해야 합니다.
|
AuthenticationResult
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 .
}
|
필드 |
통합 필드 result . result 는 다음 중 하나여야 합니다.
|
success |
object (Empty )
인증이 완료되었습니다.
|
cancelled |
object (Empty )
사용자가 흐름을 수동으로 취소했으며 흐름이 취소되어야 합니다.
|
fatalError |
object (Empty )
심각한 이유로 인증에 실패했으며 흐름을 중단해야 합니다.
|
All rights reserved. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 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"]]