Skip to main content

StsHandler

Trait StsHandler 

Source
pub trait StsHandler:
    Send
    + Sync
    + 'static {
    // Required method
    fn handle_operation(
        &self,
        op: StsOperation,
        body: Bytes,
        caller_access_key: Option<String>,
        request_id: &str,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StsResponseBody>, StsError>> + Send>>;
}
Expand description

Trait that the STS business logic provider must implement.

The handler receives a parsed operation enum, the raw form body bytes, and the caller’s access key extracted from the SigV4 Authorization header.

Required Methods§

Source

fn handle_operation( &self, op: StsOperation, body: Bytes, caller_access_key: Option<String>, request_id: &str, ) -> Pin<Box<dyn Future<Output = Result<Response<StsResponseBody>, StsError>> + Send>>

Handle an STS operation and produce an HTTP response.

Implementors§