Skip to main content

Module auth

Module auth 

Source
Expand description

AuthProvider impls for the toolkit — bearer-token-based static auth suitable for dev/test environments. Production callers should use pmcp’s OAuth/JWT providers instead.

The headline type is StaticAuthProvider, which validates inbound Authorization: Bearer <token> headers against a single expected token. Use it for tests, smoke deployments, and cargo pmcp pentest-style local servers. Never put a static bearer token in a production server.

Structs§

StaticAuthProvider
Static bearer-token auth provider, suitable for dev and tests.