|
cxxmcp 1.1.6
C++ MCP SDK
|
Abstract authentication provider used by server integrations. More...
#include <auth.hpp>
Public Member Functions | |
| virtual core::Result< AuthIdentity > | authenticate (const AuthRequest &request)=0 |
| Authenticate a transport request. | |
Abstract authentication provider used by server integrations.
The provider does not own request data; authenticate() receives a borrowed AuthRequest for the duration of the call and returns a value identity on success. Authentication failures and provider errors are propagated through core::Result so the caller can map them to protocol or HTTP errors.
|
pure virtual |
Authenticate a transport request.
| request | Headers and remote metadata to evaluate. |
Implemented in mcp::server::StaticBearerAuthProvider, mcp::auth::openssl::StaticJwksDpopBearerAuthProvider, mcp::auth::openssl::FetchingJwksDpopBearerAuthProvider, and mcp::auth::DpopBearerAuthProvider.