オブジェクト: AuthenticationResponse
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
レスポンスの本文
認証レスポンス中に送信されるオブジェクト。
クリアテキスト JSON レスポンスの例を次に示します。
{
"associationId": "88ydEE-ioiwe==",
"requestId": "375dhjf9-Uydd="
}
AuthenticationResponse
は、PGP または JWE+JWS を使用して暗号化され、署名されます。また、この値はウェブセーフの Base64 でエンコードされています。以下では、このエンコードを「Base64UrlEncode
」と呼びます。つまり、クリアテキスト JSON バージョンの AuthenticationRequest
は、次の関数を介して渡す必要があります。
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 に反映される。これにより、
渡された 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. Java は 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"]]