pub struct LambdaAuthorizerMiddleware { /* private fields */ }Expand description
Middleware that reads trusted authorizer context from x-authorizer-* headers.
These headers are injected by the Lambda adapter from requestContext.authorizer
after stripping any client-supplied headers with the same prefix (anti-spoofing).
Implementations§
Source§impl LambdaAuthorizerMiddleware
impl LambdaAuthorizerMiddleware
pub fn new(mapping: AuthorizerMapping) -> Self
Trait Implementations§
Source§impl A2aMiddleware for LambdaAuthorizerMiddleware
impl A2aMiddleware for LambdaAuthorizerMiddleware
Source§fn before_request<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut RequestContext,
) -> Pin<Box<dyn Future<Output = Result<(), MiddlewareError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn before_request<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut RequestContext,
) -> Pin<Box<dyn Future<Output = Result<(), MiddlewareError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Validate the request and populate identity on the context.
Source§fn security_contribution(&self) -> SecurityContribution
fn security_contribution(&self) -> SecurityContribution
Security contribution for AgentCard auto-population.
Auto Trait Implementations§
impl Freeze for LambdaAuthorizerMiddleware
impl RefUnwindSafe for LambdaAuthorizerMiddleware
impl Send for LambdaAuthorizerMiddleware
impl Sync for LambdaAuthorizerMiddleware
impl Unpin for LambdaAuthorizerMiddleware
impl UnsafeUnpin for LambdaAuthorizerMiddleware
impl UnwindSafe for LambdaAuthorizerMiddleware
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more