Skip to main content

McpAuthHandler

Trait McpAuthHandler 

Source
pub trait McpAuthHandler:
    Send
    + Sync
    + 'static {
    // Required method
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        session_id: SessionId,
        request_id: RequestId,
        request: McpAuthRequest,
    ) -> Pin<Box<dyn Future<Output = McpAuthResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Handler for MCP server OAuth requests.

Required Methods§

Source

fn handle<'life0, 'async_trait>( &'life0 self, session_id: SessionId, request_id: RequestId, request: McpAuthRequest, ) -> Pin<Box<dyn Future<Output = McpAuthResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolve an MCP OAuth request with host token data or cancellation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§