Skip to main content

Crate nidus_auth

Crate nidus_auth 

Source
Expand description

Authentication and guard support.

Structs§

AndGuard
Guard that succeeds only when both inner guards succeed.
GuardContext
Typed guard context.
GuardError
Authorization failure.
GuardLayer
Tower layer that enforces a Nidus guard for an HTTP route.
GuardService
Service produced by GuardLayer.
OrGuard
Guard that succeeds when either inner guard succeeds.

Traits§

Guard
Composable authorization guard.
GuardExt
Extension methods for composing guards.

Functions§

guard_layer
Creates a Tower layer that checks a typed guard before calling the inner service.

Type Aliases§

Result
Result type for guards.