|
cxxmcp 1.1.6
C++ MCP SDK
|
Server AuthProvider backed by injected JWT and DPoP verifiers. More...
#include <server_auth_provider.hpp>
Public Types | |
| using | AccessTokenHashFunction = std::function< core::Result< std::string >(std::string_view access_token)> |
Public Member Functions | |
| DpopBearerAuthProvider (JwtVerifier &jwt_verifier, DpopVerifier &dpop_verifier, AccessTokenHashFunction access_token_hash, DpopReplayCache *replay_cache=nullptr, DpopAuthProviderOptions options={}) | |
| core::Result< server::AuthIdentity > | authenticate (const server::AuthRequest &request) override |
| Authenticate a transport request. | |
Server AuthProvider backed by injected JWT and DPoP verifiers.
This provider does not parse or trust JWT payloads by itself. Access-token validation, proof signature verification, and access-token hash calculation are supplied by application or future OpenSSL-backed auth implementations.
|
inlineoverridevirtual |
Authenticate a transport request.
| request | Headers and remote metadata to evaluate. |
Implements mcp::server::AuthProvider.