Skip to main content

Module auth

Module auth 

Source
Expand description

Request identity, derived from headers.

Mirrors the parts of handleParseHeaders (middlewares.js:73-289) that the current routes need. The order of checks is upstream’s and is load-bearing.

Modules§

headers
Header names. Case-insensitive on the wire; http::HeaderMap handles that.

Structs§

Authority
What authority a request carries, plus the two headers that are not credentials.

Enums§

Credentials
How a request authenticated.
HeaderRejection
Why a request was refused before reaching a route.
Peer
Where a request came from, as far as the allowlist is concerned.

Functions§

resolveDeprecated
The 0.2.0 signature, kept so a patch release does not stop a downstream crate compiling.
resolve_with_peer
Resolve authority from headers and the peer address.