pub struct AuthenticatorAssertionResponse {
pub client_data_json: Bytes,
pub authenticator_data: Bytes,
pub signature: Bytes,
pub user_handle: Option<Bytes>,
pub attestation_object: Option<Bytes>,
}Expand description
This type represents an authenticator’s response to a client’s request for generation of a new authentication assertion given the Relying Party’s challenge and OPTIONAL list of credentials it is aware of. This response contains a cryptographic signature proving possession of the credential private key, and optionally evidence of user consent to a specific transaction.
https://w3c.github.io/webauthn/#iface-authenticatorassertionresponse
Fields§
§client_data_json: BytesThis attribute contains the JSON serialization of CollectedClientData passed to the
authenticator by the client in order to generate this credential. The exact JSON serialization
MUST be preserved, as the hash of the serialized client data has been computed over it.
authenticator_data: BytesThis attribute contains the authenticator data returned by the authenticator. See AuthenticatorData.
signature: BytesThis attribute contains the raw signature returned from the authenticator.
user_handle: Option<Bytes>This attribute contains the user handle returned from the authenticator, or null if the authenticator did not return a user handle.
This mirrors the PublicKeyCredentialUserEntity::id field.
attestation_object: Option<Bytes>This OPTIONAL attribute contains an attestation object, if the authenticator supports attestation
in assertions. The attestation object, if present, includes an attestation statement. Unlike
the AuthenticatorAttestationResponse::attestation_object, it does not contain an authData
key because the authenticator data is provided directly above in
AuthenticatorAssertionResponse::authenticator_data structure. For more details on attestation,
see Attestation in assertions.