Skip to main content

PassGate

Trait PassGate 

Source
pub trait PassGate: Send + Sync {
    // Required method
    fn verify(&self, token: &str, tool: &str) -> Result<PassEvidence, String>;
}
Expand description

Offline pass verifier injected by the deployment (wm-receipts in wm-mcp).

Required Methods§

Source

fn verify(&self, token: &str, tool: &str) -> Result<PassEvidence, String>

Verify a gate-lite pass token for tool; the error string is the human-readable refusal reason.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§