crates/nornir-auth-bearer/Cargo.toml
[package]
name = "nornir-auth-bearer"
version = "0.1.1"
edition = "2021"
authors = ["Ignalina ApS"]
description = "Static Bearer token / API-key auth PROVIDER for the nordisk servers — the tiny, modern machine-to-machine method (CI runners, agents, headless clients). Implements the shared `nornir_service::AuthProvider` seam; reuses the shared bearer-secret resolution ladder + constant-time compare. Feature-gated sub-crate so an embedded/mini tier ships this ONE provider and nothing heavier. Consumed by holger (reference impl), korp, dwarves."
license = "MIT OR Apache-2.0"
repository = "https://git.gunnar.rs/nordisk/edda"
keywords = ["auth", "bearer", "api-key", "grpc", "tonic"]
categories = ["authentication", "network-programming"]
[lib]
name = "nornir_auth_bearer"
[dependencies]
# The ONE shared auth-provider seam + the reused bearer-secret ladder
# (`resolve_token`) and constant-time compare (`token_matches`) — consumed, never
# twinned (Law #1 / #5). No `tls` here: the bearer provider links no TLS stack.
nornir-service = { version = "0.1.3", path = "../nornir-service", features = ["auth-provider"] }
tonic = { version = "0.14", default-features = false }
[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt"] }
tempfile = "3"