feat: add client_data, registration_data
This commit is contained in:
@@ -54,6 +54,8 @@ pub struct U2fRegistrationData {
|
||||
pub app_id: String,
|
||||
pub device_info: U2FDeviceInfo,
|
||||
pub device_name: Option<String>,
|
||||
pub client_data: String,
|
||||
pub registration_data: String,
|
||||
pub attestation_cert_pem: Option<String>,
|
||||
pub pub_key: String,
|
||||
pub key_handle: String,
|
||||
@@ -69,6 +71,8 @@ impl U2fRegistrationData {
|
||||
app_id: app_id.to_string(),
|
||||
device_info: U2FDeviceInfo::from(®ister_result),
|
||||
device_name: rr.device_name,
|
||||
client_data: client_data.into(),
|
||||
registration_data: base64::encode(®ister_result.0),
|
||||
attestation_cert_pem: rr.attestation_cert.map(|c| {
|
||||
to_pem(&c, "CERTIFICATE", 64)
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user