INNER CODE UNIT · Rust

run_client_credentials_jwt

modelcontextprotocol/rust-sdk · conformance/src/bin/client.rs:724

async fn run_client_credentials_jwt(
    server_url: &str,
    ctx: &ConformanceContext,
) -> anyhow::Result<()> {
    let client_id = ctx
        .client_id
        .clone()
        .unwrap_or_else(|| "conformance-test-client".to_string());
    let signing_key = ctx
        .private_key_pem
        .as_ref()
        .ok_or_else(|| anyhow::anyhow!("Missing private_key_pem"))?
        .as_bytes()
        .to_vec();
    let signing_algorithm = match ctx
        .signing_algorithm
        .as_deref()
        .ok_or_else(|| anyhow::anyhow!("Missing signing_algorithm"))?

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…