hyperlane-plugin-auth 23.3.0

A zero-external-crypto-dependency authentication and RBAC plugin for the Hyperlane framework providing pure-Rust HS256 JWT with kid rotation, API key and HTTP Basic authenticators, extensible async Authenticator traits, and constant-time verification.
Documentation
<div align="center">

# hyperlane-plugin-auth

**Authentication & Identity Guard Plugin**

[![crates.io](https://flat.badgen.net/crates/v/hyperlane-plugin-auth)](https://crates.io/crates/hyperlane-plugin-auth)
[![docs.rs](https://img.shields.io/docsrs/hyperlane-plugin-auth?style=flat-square)](https://docs.rs/hyperlane-plugin-auth)
[![Rust 2024](https://img.shields.io/badge/edition-2024-orange.svg?style=flat-square)](https://www.rust-lang.org)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](../../LICENSE)

[Workspace Overview](../../README.md) · [API Docs](https://docs.rs/hyperlane-plugin-auth/latest/)

</div>

---

## Overview

Opt-in authentication middleware supporting Bearer/JWT/API-key extraction, principal attachment into `Context` attributes, and fail-closed rejection.

This crate is a member of the [`hyperlane`](../../README.md) unified Rust 2024 workspace. All plugin crates are opt-in and transparent (`Status::Continue`) when unconfigured.

## Responsibilities & Module Layout

- `struct` / `trait` / `impl` — Opt-in `OnceLock` configuration, authenticator trait, and `ServerHook` guard

## Installation

```sh
cargo add hyperlane-plugin-auth
```

## Verification

Run crate-scoped formatting, lint, and test gates from the workspace root:

```sh
cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-auth --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-auth --all-features
```

## Documentation & Governance

- Update this `README.md` alongside any public API, plugin contract, or module-boundary change.
- Project standards and release workflows live in [`../../.agents/skills/hyperlane/SKILL.md`]../../.agents/skills/hyperlane/SKILL.md.

## License

This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.

## Contact

For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).