Transport-neutral authentication input.
More...
#include <auth.hpp>
|
|
std::unordered_map< std::string, std::string > | headers |
| | Request headers or metadata supplied by the transport.
|
| |
|
std::string | remote_address |
| | Best-effort remote address for audit and policy decisions.
|
| |
|
std::optional< std::string > | http_method |
| | HTTP request method when supplied by an HTTP-based transport.
|
| |
|
std::optional< std::string > | http_url |
| | Absolute HTTP request URL when supplied by an HTTP-based transport.
|
| |
Transport-neutral authentication input.
AuthRequest contains only data that can be obtained before dispatching an MCP request. Header names and remote address formats are transport-specific; implementations should normalize them before policy checks when needed.
The documentation for this struct was generated from the following file:
- sdk/server/include/cxxmcp/server/auth.hpp