Files
inbuxa-server/crates/http/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

57 lines
1.8 KiB
TOML

[package]
name = "http"
version.workspace = true
edition = "2024"
[dependencies]
store = { path = "../store" }
common = { path = "../common" }
utils = { path = "../utils" }
trc = { path = "../trc" }
email = { path = "../email" }
smtp = { path = "../smtp" }
jmap = { path = "../jmap" }
dav = { path = "../dav" }
scim = { path = "../scim" }
scim-proto = { path = "../scim-proto" }
groupware = { path = "../groupware" }
http_proto = { path = "../http-proto" }
jmap_proto = { path = "../jmap-proto" }
types = { path = "../types" }
directory = { path = "../directory" }
services = { path = "../services" }
registry = { path = "../registry" }
mail-parser = { version = "0.11", features = ["full_encoding", "rkyv"] }
mail-builder = { version = "1.0" }
mail-auth = { version = "0.13", features = ["generate", "arc"] }
tokio = { version = "1.53", features = ["rt"] }
hyper = { version = "1.11.1", features = ["server", "http1", "http2"] }
inbuxa-features = { path = "../features" }
hyper-util = { version = "0.1.20", features = ["tokio"] }
http-body-util = "0.1.5"
async-stream = "0.3.6"
serde = { version = "1.0", features = ["derive"]}
serde_json = "1.0"
chrono = "0.4"
base64 = "0.23"
sha2 = "0.11"
rkyv = { version = "0.8.18", features = ["little_endian"] }
form-data = { version = "0.6.0", features = ["sync"], default-features = false }
mime = "0.3.17"
percent-encoding = "2.3.2"
hashify = { version = "0.2" }
webauthn-rs = { version = "0.6.2", features = ["danger-allow-state-serialisation", "danger-credential-internals", "conditional-ui"] } # inbuxa: passkeys
webauthn-rs-proto = "0.6.2" # inbuxa: passkeys
[dev-dependencies]
flate2 = "1.1"
tokio = { version = "1.53", features = ["rt", "macros", "time", "test-util", "io-util"] }
[features]
test_mode = []
dev_mode = []
enterprise = ["scim/enterprise"]
[lints]
workspace = true