|
cxxmcp 1.1.6
C++ MCP SDK
|
Abstract interfaces for server-side OAuth 2.1 endpoint handlers. More...
#include <chrono>#include <functional>#include <optional>#include <string>#include <vector>#include "cxxmcp/auth/metadata.hpp"#include "cxxmcp/auth/registration.hpp"#include "cxxmcp/auth/token.hpp"#include "cxxmcp/auth/types.hpp"#include "cxxmcp/core/result.hpp"Go to the source code of this file.
Classes | |
| struct | mcp::auth::AuthorizationRequestParams |
| Parameters parsed from an authorization request (RFC 6749 Section 4.1.1). More... | |
| struct | mcp::auth::AuthorizationDecision |
| Result of a successful authorization decision. More... | |
| class | mcp::auth::AuthorizationEndpointHandler |
| Abstract handler for the authorization endpoint. More... | |
| struct | mcp::auth::TokenRequestParams |
| Parameters parsed from a token request (RFC 6749 Section 4.1.3). More... | |
| class | mcp::auth::TokenEndpointHandler |
| Abstract handler for the token endpoint. More... | |
| class | mcp::auth::ClientRegistrationEndpointHandler |
| Abstract handler for the dynamic client registration endpoint. More... | |
| struct | mcp::auth::TokenRevocationParams |
| Parameters parsed from a revocation request (RFC 7009). More... | |
| class | mcp::auth::TokenRevocationEndpointHandler |
| Abstract handler for the token revocation endpoint. More... | |
| struct | mcp::auth::TokenEndpointResponse |
| Token endpoint response serialized by an authorization server. More... | |
| struct | mcp::auth::AuthorizationServerConfig |
| OAuth authorization server endpoint wiring owned by the auth layer. More... | |
Typedefs | |
| using | mcp::auth::AuthorizationEndpointCallback = std::function< core::Result< AuthorizationDecision >(const AuthorizationRequestParams &)> |
| Function callback for the authorization endpoint. | |
| using | mcp::auth::TokenEndpointCallback = std::function< core::Result< TokenEndpointResponse >(const TokenRequestParams &)> |
| Function callback for the token endpoint. | |
| using | mcp::auth::ClientRegistrationEndpointCallback = std::function< core::Result< ClientRegistrationResponse >(const ClientRegistrationRequest &)> |
| Function callback for dynamic client registration. | |
| using | mcp::auth::TokenRevocationEndpointCallback = std::function< core::Result< core::Unit >(const TokenRevocationParams &)> |
| Function callback for token revocation. | |
Abstract interfaces for server-side OAuth 2.1 endpoint handlers.
Applications implement these interfaces to plug authorization server behavior into the MCP HTTP transport. The SDK owns the HTTP protocol wiring (route registration, request parsing, response serialization); the application owns authorization decisions, token minting, and client registration policy.