mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Update to latest webauthn-rs/time (#3315)
This updates to the latest webauthn-rs release. When updating, an issue with time was found that changes the behaviour of it's parser for rfc3339. This also updates our tests to accomodate that change. Co-authored-by: James Hodgkinson <james@terminaloutcomes.com>
This commit is contained in:
parent
b6f63f3605
commit
bbefb0b1b1
801
Cargo.lock
generated
801
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
12
Cargo.toml
12
Cargo.toml
|
@ -154,7 +154,7 @@ axum = { version = "0.7.9", features = [
|
||||||
axum-htmx = { version = "0.5.0", features = ["serde", "guards"] }
|
axum-htmx = { version = "0.5.0", features = ["serde", "guards"] }
|
||||||
base32 = "^0.5.1"
|
base32 = "^0.5.1"
|
||||||
base64 = "^0.22.1"
|
base64 = "^0.22.1"
|
||||||
base64urlsafedata = "0.5.0"
|
base64urlsafedata = "0.5.1"
|
||||||
bitflags = "^2.6.0"
|
bitflags = "^2.6.0"
|
||||||
bytes = "^1.9.0"
|
bytes = "^1.9.0"
|
||||||
clap = { version = "^4.5.23", features = ["derive", "env"] }
|
clap = { version = "^4.5.23", features = ["derive", "env"] }
|
||||||
|
@ -261,7 +261,7 @@ svg = "0.13.1"
|
||||||
syn = { version = "2.0.90", features = ["full"] }
|
syn = { version = "2.0.90", features = ["full"] }
|
||||||
tempfile = "3.14.0"
|
tempfile = "3.14.0"
|
||||||
testkit-macros = { path = "./server/testkit-macros" }
|
testkit-macros = { path = "./server/testkit-macros" }
|
||||||
time = { version = "^0.3.34", features = ["formatting", "local-offset"] }
|
time = { version = "^0.3.36", features = ["formatting", "local-offset"] }
|
||||||
|
|
||||||
tokio = "^1.42.0"
|
tokio = "^1.42.0"
|
||||||
tokio-openssl = "^0.6.5"
|
tokio-openssl = "^0.6.5"
|
||||||
|
@ -281,13 +281,13 @@ utoipa = { version = "4.2.0", features = ["url", "uuid"] }
|
||||||
utoipa-swagger-ui = "6.0.0"
|
utoipa-swagger-ui = "6.0.0"
|
||||||
uuid = "^1.11.0"
|
uuid = "^1.11.0"
|
||||||
|
|
||||||
webauthn-authenticator-rs = { version = "0.5.0", features = [
|
webauthn-authenticator-rs = { version = "0.5.1", features = [
|
||||||
"softpasskey",
|
"softpasskey",
|
||||||
"softtoken",
|
"softtoken",
|
||||||
] }
|
] }
|
||||||
webauthn-rs = { version = "0.5.0", features = ["preview-features"] }
|
webauthn-rs = { version = "0.5.1", features = ["preview-features"] }
|
||||||
webauthn-rs-core = "0.5.0"
|
webauthn-rs-core = "0.5.1"
|
||||||
webauthn-rs-proto = "0.5.0"
|
webauthn-rs-proto = "0.5.1"
|
||||||
|
|
||||||
whoami = "^1.5.2"
|
whoami = "^1.5.2"
|
||||||
walkdir = "2"
|
walkdir = "2"
|
||||||
|
|
|
@ -2409,10 +2409,13 @@ mod tests {
|
||||||
assert!(val1.validate());
|
assert!(val1.validate());
|
||||||
let val2 = Value::new_datetime_s("2020-09-25T01:22:02+00:00").expect("Must be valid");
|
let val2 = Value::new_datetime_s("2020-09-25T01:22:02+00:00").expect("Must be valid");
|
||||||
assert!(val2.validate());
|
assert!(val2.validate());
|
||||||
|
// Spaces are now valid in rfc3339 for parsing.
|
||||||
|
let val3 = Value::new_datetime_s("2020-09-25 01:22:02+00:00").expect("Must be valid");
|
||||||
|
assert!(val3.validate());
|
||||||
|
|
||||||
assert!(Value::new_datetime_s("2020-09-25T01:22:02").is_none());
|
assert!(Value::new_datetime_s("2020-09-25T01:22:02").is_none());
|
||||||
assert!(Value::new_datetime_s("2020-09-25").is_none());
|
assert!(Value::new_datetime_s("2020-09-25").is_none());
|
||||||
assert!(Value::new_datetime_s("2020-09-25T01:22:02+10").is_none());
|
assert!(Value::new_datetime_s("2020-09-25T01:22:02+10").is_none());
|
||||||
assert!(Value::new_datetime_s("2020-09-25 01:22:02+00:00").is_none());
|
|
||||||
|
|
||||||
// Manually craft
|
// Manually craft
|
||||||
let inv1 = Value::DateTime(
|
let inv1 = Value::DateTime(
|
||||||
|
|
|
@ -87,6 +87,7 @@ features = ["u2fhid"]
|
||||||
[target."cfg(target_os = \"macos\")".dependencies.webauthn-authenticator-rs]
|
[target."cfg(target_os = \"macos\")".dependencies.webauthn-authenticator-rs]
|
||||||
workspace = true
|
workspace = true
|
||||||
features = ["mozilla"]
|
features = ["mozilla"]
|
||||||
|
# features = ["u2fhid"]
|
||||||
|
|
||||||
[target."cfg(target_os = \"freebsd\")".dependencies.webauthn-authenticator-rs]
|
[target."cfg(target_os = \"freebsd\")".dependencies.webauthn-authenticator-rs]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
Loading…
Reference in a new issue