mirror of
https://github.com/trussed-dev/fido-authenticator.git
synced 2026-06-20 04:16:16 -07:00
Update ctap-types
This commit is contained in:
@@ -45,5 +45,6 @@ rand = "0.8.4"
|
||||
features = ["dispatch"]
|
||||
|
||||
[patch.crates-io]
|
||||
ctap-types = { git = "https://github.com/Nitrokey/ctap-types.git", tag = "v0.1.2-nitrokey.2" }
|
||||
ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "57cb3317878a8593847595319aa03ef17c29ec5b" }
|
||||
trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "51e68500d7601d04f884f5e95567d14b9018a6cb" }
|
||||
|
||||
+3
-3
@@ -324,7 +324,7 @@ impl Credential {
|
||||
let data = &mut stripped.data;
|
||||
|
||||
data.rp.name = None;
|
||||
data.rp.url = None;
|
||||
data.rp.icon = None;
|
||||
|
||||
data.user.icon = None;
|
||||
data.user.name = None;
|
||||
@@ -348,7 +348,7 @@ mod test {
|
||||
rp: PublicKeyCredentialRpEntity {
|
||||
id: String::from("John Doe"),
|
||||
name: None,
|
||||
url: None,
|
||||
icon: None,
|
||||
},
|
||||
user: PublicKeyCredentialUserEntity {
|
||||
id: Bytes::from_slice(&[1, 2, 3]).unwrap(),
|
||||
@@ -427,7 +427,7 @@ mod test {
|
||||
rp: PublicKeyCredentialRpEntity {
|
||||
id: random_string(),
|
||||
name: maybe_random_string(),
|
||||
url: maybe_random_string(),
|
||||
icon: None,
|
||||
},
|
||||
user: PublicKeyCredentialUserEntity {
|
||||
id: random_bytes(), //Bytes::from_slice(&[1,2,3]).unwrap(),
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ impl<UP: UserPresence, T: TrussedRequirements> Authenticator for crate::Authenti
|
||||
let rp = ctap_types::webauthn::PublicKeyCredentialRpEntity {
|
||||
id: rp_id,
|
||||
name: None,
|
||||
url: None,
|
||||
icon: None,
|
||||
};
|
||||
|
||||
let user = ctap_types::webauthn::PublicKeyCredentialUserEntity {
|
||||
|
||||
Reference in New Issue
Block a user