cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
client_orchestrator.hpp File Reference

High-level OAuth 2.1 client orchestrator. More...

#include <chrono>
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "cxxmcp/auth/http_metadata_endpoint.hpp"
#include "cxxmcp/auth/http_token_endpoint.hpp"
#include "cxxmcp/auth/lifecycle.hpp"
#include "cxxmcp/auth/pkce.hpp"
#include "cxxmcp/auth/token.hpp"
#include "cxxmcp/auth/types.hpp"
#include "cxxmcp/auth/www_auth.hpp"
#include "cxxmcp/core/result.hpp"

Go to the source code of this file.

Classes

class  mcp::auth::OAuthClientCallback
 Callback interface for the OAuth client orchestrator. More...
 
struct  mcp::auth::OAuthClientOrchestratorConfig
 Configuration for the OAuth client orchestrator. More...
 
class  mcp::auth::OAuthClientOrchestrator
 High-level OAuth 2.1 client orchestrator. More...
 
class  mcp::auth::OAuthClientFlow
 Built common browser + PKCE OAuth client flow. More...
 
class  mcp::auth::OAuthClientFlowBuilder
 Fluent builder for the common OAuth browser authorization flow. More...
 

Functions

OAuthClientFlowBuilder mcp::auth::oauth_client_flow ()
 Start building the common OAuth browser authorization flow.
 
OAuthClientFlowBuilder mcp::auth::oauth_client_flow (std::string resource_url)
 Start building the common OAuth browser flow for a resource URL.
 

Detailed Description

High-level OAuth 2.1 client orchestrator.

OAuthClientOrchestrator drives the full OAuth flow: discovery -> registration -> authorization -> token exchange -> refresh

All network I/O and user interaction are injected via abstract interfaces.