diff --git a/CHANGELOG.md b/CHANGELOG.md index 97ff18f..a7b8793 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add support for the `thirdPartyPayment` extension behind a `third-party-payment` feature (disabled by default) - Add new fields to `get_info` - Add unsigned extension outputs to `make_credential` and `get_assertion` + - Add enterprise attestation support to `get_assertion` ## [0.2.0] - 2024-06-21 diff --git a/src/arbitrary.rs b/src/arbitrary.rs index fe22654..1731dc4 100644 --- a/src/arbitrary.rs +++ b/src/arbitrary.rs @@ -137,6 +137,7 @@ impl<'a> Arbitrary<'a> for ctap2::get_assertion::Request<'a> { None }; let pin_protocol = u.arbitrary()?; + let enterprise_attestation = u.arbitrary()?; Ok(Self { rp_id, client_data_hash, @@ -145,6 +146,7 @@ impl<'a> Arbitrary<'a> for ctap2::get_assertion::Request<'a> { options, pin_auth, pin_protocol, + enterprise_attestation, }) } } diff --git a/src/ctap2/get_assertion.rs b/src/ctap2/get_assertion.rs index 9a4095e..c31d587 100644 --- a/src/ctap2/get_assertion.rs +++ b/src/ctap2/get_assertion.rs @@ -101,6 +101,8 @@ pub struct Request<'a> { pub pin_auth: Option<&'a serde_bytes::Bytes>, #[serde(skip_serializing_if = "Option::is_none")] pub pin_protocol: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub enterprise_attestation: Option, } // NB: attn object definition / order at end of @@ -125,6 +127,8 @@ pub struct Response { pub large_blob_key: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub unsigned_extension_outputs: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub ep_att: Option, } #[derive(Debug)] @@ -146,6 +150,7 @@ impl ResponseBuilder { user_selected: None, large_blob_key: None, unsigned_extension_outputs: None, + ep_att: None, } } }