Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication and authorization traits for the rust-webx framework.

Provides:

  • IClaims: Extracted auth claims (JWT or other token types).
  • IAuthenticationHandler: Authenticate an HTTP request and produce claims.
  • IAuthorizationPolicy: Check if authenticated claims can access a resource.

Structs§

DeclaredRules
The #[authorize] rules declared on the matched endpoint.
IdentityUser
The standard identity a request can carry.

Traits§

IAuthenticationHandler
Authentication scheme interface.
IAuthorizationPolicy
Authorization policy that checks whether an authenticated user can access a given resource.
IClaims
Claims extracted from an authentication token (JWT, etc.).
IDynamicAuthorizer
Dynamic authorizer interface — pluggable authorization for protected routes.
RequestUser
Convenience accessors for a request that carries an IdentityUser.