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.

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.