Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/facett

facett-auth-ui/Cargo.toml

[package]
name = "facett-auth-ui"
description = "facett — the shared in-GUI device-code SIGN-IN pane: one robot-testable egui `Facet` that renders an RFC 8628 device-code login (Sign in → user-code + verification URL, clickable/copyable → poll → signed-in subject + credential NAMES → Sign out) so dwarves/korp/holger-ui mount ONE pane, not per-app twins. AUTH-LIBRARY-AGNOSTIC + presentational: the HOST implements the `LoginSeam` (wiring nornir-auth-client); the pane only renders the seam's states. Generalises dwarves-demo's interim `profile.rs` LoginSeam."
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
# Development notes, agent instructions and machine-local tooling stay in the
# repository; they are not part of the published crate.
exclude = [
    ".nornir/",
]

[features]
default = []
# `testmatrix` — turn the pane's render/drive self-checks into real nornir
# test-matrix rows via `functional_status`. Compiled OUT of the default build (no
# nornir dep by default), a `#[inline]` no-op otherwise. Same idiom as
# facett-about / facett-confirm: the optional `nornir-testmatrix` edge only exists
# behind this feature, so a release build carries no emit and no dep. Resolves from
# crates.io (NOT a path) so the nornir-server's own facett clone never reaches the
# dev checkout.
testmatrix = ["dep:nornir-testmatrix", "nornir-testmatrix/testmatrix"]

[dependencies]
# The Facet contract (title/ui/state_json/update_json) + the shared clipboard `put`
# (the copy-URL / copy-code buttons reuse it — no OS clipboard call is twinned).
facett-core = { path = "../facett-core", version = "0.3.0" }
egui = { workspace = true }
serde_json = { workspace = true }
# L4: functional-status emitter. OPTIONAL + behind the `testmatrix` feature so a
# release build carries no dependency edge and strips every emit call.
nornir-testmatrix = { version = "0.2", default-features = false, optional = true }

[dev-dependencies]
# CPU render-proof (AccessKit tree) via the kittest harness — the robot scenario
# renders the real pane body through SignedOut → AwaitingUser → SignedIn.
egui_kittest = { version = "0.36" }