Files
inbuxa-server/tests/Cargo.toml
jcoffey-dev 138178c85b
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 12m46s
Passkeys: the registration page (#334)
Second part of passkeys (docs/spec/features/passkeys.md, PK-6 to PK-8).
The server now serves /passkey/register, the page an inbuxa:Passkey
create's registrationUrl opens, next to the login page.

The page asks for the account's password, and its TOTP code when it has
one, before the browser's passkey dialog: a stolen session token can
start a registration but not finish one. It posts to
/api/passkey/register in two steps. "start" checks the ticket and the
password through the usual sign-in path (limits and failure counting
included) and answers with the WebAuthn options: a discoverable
credential, user verification required, attestation none, the account's
existing passkeys excluded. "finish" checks what the browser made and
turns the passkey active. What "start" began waits in the in-memory
store, so any node can finish it, and is good once.

The relying-party id is the host of the server's public URL, and that
URL is the only origin accepted. A credential id already registered to
any account is refused. Each account gets a random user handle the
first time it registers one, for sign-in to find it by.

The WebAuthn checks come from webauthn-rs 0.6.2 (MPL-2.0; its new
dependencies are MIT or Apache-2.0, crypto-glue MPL-2.0; no OpenSSL).
It tests ES256, ES384 and RS256, so the spec's algorithm list now says
those.

The "or an active passkey" of PK-8 arrives with passkey sign-in.
2026-11-18 20:13:31 -07:00

101 lines
4.4 KiB
TOML

[package]
name = "tests"
version.workspace = true
edition = "2024"
[features]
# `pending-rebuild` held the shared tests of features the fork hadn't rebuilt
# yet. All nine are built and every gate is off, so the feature went on
# 2026-09-19 (docs/spec/SPEC.md §2.2b).
#default = ["sqlite", "postgres", "mysql", "rocks", "s3", "redis", "nats", "azure", "foundationdb"]
#default = ["sqlite", "postgres", "mysql", "rocks", "s3", "redis", "foundationdb"]
default = ["rocks", "sqlite"]
sqlite = ["store/sqlite", "directory/sqlite"]
foundationdb = ["store/foundation", "common/foundation"]
postgres = ["store/postgres", "directory/postgres"]
mysql = ["store/mysql", "directory/mysql"]
rocks = ["store/rocks"]
s3 = ["store/s3"]
redis = ["store/redis", "coordinator/redis"]
nats = ["coordinator/nats"]
kafka = ["coordinator/kafka"]
azure = ["store/azure"]
[dev-dependencies]
store = { path = "../crates/store", features = ["test_mode"] }
nlp = { path = "../crates/nlp" }
directory = { path = "../crates/directory", features = ["test_mode"] }
coordinator = { path = "../crates/coordinator", features = ["test_mode"] }
jmap = { path = "../crates/jmap", features = ["test_mode"] }
jmap_proto = { path = "../crates/jmap-proto" }
imap = { path = "../crates/imap", features = ["test_mode"] }
imap_proto = { path = "../crates/imap-proto" }
types = { path = "../crates/types" }
dav = { path = "../crates/dav", features = ["test_mode"] }
dav-proto = { path = "../crates/dav-proto", features = ["test_mode"] }
calcard = { version = "0.3", features = ["rkyv"] }
groupware = { path = "../crates/groupware", features = ["test_mode"] }
http = { path = "../crates/http", features = ["test_mode"] }
http_proto = { path = "../crates/http-proto", features = ["test_mode"] }
scim = { path = "../crates/scim", features = ["test_mode"] }
scim-proto = { path = "../crates/scim-proto" }
services = { path = "../crates/services", features = ["test_mode"] }
pop3 = { path = "../crates/pop3", features = ["test_mode"] }
smtp = { path = "../crates/smtp", features = ["test_mode"] }
common = { path = "../crates/common", features = ["test_mode"] }
registry = { path = "../crates/registry" }
inbuxa-features = { path = "../crates/features" }
inbuxa-relay-proto = { path = "../crates/relay-proto" }
email = { path = "../crates/email", features = ["test_mode"] }
spam-filter = { path = "../crates/spam-filter", features = ["test_mode"] }
trc = { path = "../crates/trc", features = [] }
managesieve = { path = "../crates/managesieve", features = ["test_mode"] }
migration = { path = "../crates/migration" }
smtp-proto = { version = "0.2" }
mail-auth = { version = "0.13", features = ["test"] }
mail-parser = { version = "0.11", features = ["full_encoding", "rkyv"] }
mail-builder = "1.0"
sieve-rs = { version = "0.7", features = ["rkyv"] }
utils = { path = "../crates/utils", features = ["test_mode"] }
jmap-client = { version = "0.4", features = ["websockets", "debug", "async"] }
tokio = { version = "1.53", features = ["full"] }
tokio-rustls = { version = "0.26", default-features = false, features = ["aws_lc_rs", "tls12"] }
rustls = { version = "0.23.43", default-features = false, features = ["std", "aws_lc_rs", "tls12"] }
rustls-pki-types = { version = "1" }
csv = "1.4"
rayon = { version = "1.12.0" }
flate2 = { version = "1.1.10", features = ["zlib"], default-features = false }
serde = { version = "1.0", features = ["derive"]}
serde_json = "1.0"
reqwest = { version = "0.13", default-features = false, features = ["rustls", "multipart", "http2", "form"]}
bytes = "1.12.1"
futures = "0.3"
ece = "2.3"
hyper = { version = "1.11.1", features = ["server", "http1", "http2"] }
hyper-util = { version = "0.1.20", features = ["tokio"] }
base64 = "0.23"
ahash = { version = "0.8" }
serial_test = "4.0.1"
chrono = "0.4"
aws-lc-rs = { version = "1" }
biscuit = "0.8.0"
form_urlencoded = "1.2.2"
rkyv = { version = "0.8.18", features = ["little_endian"] }
quick-xml = "0.41"
jmap-tools = { version = "0.1" }
dns-update = { version = "0.6", features = ["test_provider"] }
x509-parser = "0.18"
rcgen = "0.14"
sha2 = "0.11"
ring = "0.17" # inbuxa: a software authenticator for the passkey tests
zip = "8.6" # inbuxa: reading legal hold exports
time = "0.3"
testcontainers = { version = "0.28", features = ["reusable-containers"] }
rust-s3 = { version = "0.38", default-features = false, features = ["tokio-rustls-tls"] }
[target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies]
tikv-jemallocator = "0.7"
[lints]
workspace = true