datadeft_auth — native Elixir 0.8

Elixir server implementation of datadeft-auth, compatible with Rust 0.7. It builds and runs without a Rust toolchain or a project-owned native extension. A checkout of version 0.8.0 can be tested before registry publication.

Usage

See USAGE.md for installation, examples and optional Plug helpers. To try browser sign-in and logout, see the standalone Bandit example. See PORT-CUTOVER.md if migrating an old Port consumer, and RELEASE-READINESS.md for evidence and release blockers.

Development

Requires Elixir >= 1.16 and OTP >= 26, with ChaCha20 and ChaCha20-Poly1305 available in OTP :crypto:

mise run elixir-verify
mise run hex-source-smoke

mise run hex-package builds a local Hex archive without publishing. The smoke task builds a clean Mix release from that exact archive. The Linux platform gate runs the same check without a Rust toolchain; Rust is needed only for repository checks that exercise both implementations.

The framework-neutral request-to-logout flow runs with injected delivery and storage. DynamoDB Local covers scanner-safe landing, atomic confirmation, live session checks and revocation across Rust and Elixir. The independent PoW helpers share proof cookies and budgets with Rust and use the same browser client. See audited administration and signed AWS integration for optional adapters.

Crypto and compatibility

Branca uses JOSE's OTP-backed XChaCha20-Poly1305 provider; PoW uses pure-Elixir b3 only for the public BLAKE3 hashes. All algorithms, wire formats and input bounds remain Rust-compatible. Decode alone never establishes freshness, purpose or session validity. See the crypto provider contract.

Package-local tests work without repository fixtures. Repository checks add the official Rust Branca vectors and the shared interoperability suite.