Packages

Native Elixir authentication compatible with datadeft-auth Rust.

Current section

Files

Jump to
datadeft_auth README.md
Raw

README.md

# 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](USAGE.md) for installation, examples and optional Plug helpers.
To try browser sign-in and logout, see the
[standalone Bandit example](../examples/bandit_magic_link/README.md).
See [PORT-CUTOVER.md](PORT-CUTOVER.md) if migrating an old Port consumer, and
[RELEASE-READINESS.md](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`:

```sh
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](POW-INTEGRATION.md) share proof cookies and budgets
with Rust and use the same browser client. See [audited administration](ADMIN-PARITY.md)
and [signed AWS integration](AWS-INTEGRATION.md) 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](CRYPTO-DEPENDENCIES.md).

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