对象:AuthenticationRequest
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
请求正文
在身份验证请求期间发送的对象。
以下是一个明文 JSON 请求示例:
{
"requestId": "375dhjf9-Uydd="
}
AuthenticationRequest
使用 PGP 或 JWE+JWS 进行加密和签名。
此外,此值采用可在网络上安全使用的 base64 编码。该编码在下文中称为
Base64UrlEncode
。换言之,
必须通过以下函数传递 AuthenticationRequest
:
Base64UrlEncode(
PGPSignAndEncrypt(
'{"requestId": "375dhjf9-Uydd="}'
)
)
或
Base64UrlEncode(
JWSignAndEncrypt(
'{"requestId": "375dhjf9-Uydd="}'
)
)
JSON 表示法 |
{
"requestId": string,
"associationId": string,
}
|
字段 |
requestId |
string
REQUIRED:此请求的标识符。
|
associationId |
string
OPTIONAL:此 ID 表示客户的 Google 账号与客户的供应商账号之间的关联。如果此身份验证流程用于对已完成关联流程的用户重新进行身份验证,此字段会标识用户必须对供应商进行身份验证的特定账号。这样可以确保用户不会(例如)意外使用其他账号进行身份验证。如果提供此字段,付款集成商必须确保要进行身份验证的账号与此 associationId 相关联,否则必须返回失败。
|
保留所有权利。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[[["易于理解","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"]],["最后更新时间 (UTC):2025-07-25。"],[[["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"]]