Module security

Source
Expand description

Security subsystem – runs before/after the main filter pipeline.

Initially ships with zero providers; downstream crates add their own by implementing SecurityProvider and registering them on [ProxyCore].

Modules§

basic
Basic authentication provider.
oidc
OpenID-Connect bearer-token provider.

Structs§

ProviderConfig
SecurityChain
Executes all registered providers.
SecurityProviderFactory
Factory for creating security providers based on configuration.

Enums§

SecurityStage
When in the request/response lifecycle should a provider run?

Traits§

SecurityProvider
A unit of security logic – e.g. BasicAuth, JWT, OIDC, mTLS …

Functions§

register_security_provider
Register a security provider under a unique name.

Type Aliases§

SecurityProviderConstructor
Constructor signature every dynamic security provider must implement. Because providers may need to perform async operations (like OIDC discovery), the constructor returns a pinned, boxed future.