cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::auth::OAuthClientFlowBuilder Class Reference

Fluent builder for the common OAuth browser authorization flow. More...

#include <client_orchestrator.hpp>

Public Member Functions

 OAuthClientFlowBuilder (std::string resource_url)
 
OAuthClientFlowBuilderresource_url (std::string value)
 Set the MCP protected resource URL.
 
OAuthClientFlowBuilderclient_name (std::string value)
 Set the display name used during dynamic client registration.
 
OAuthClientFlowBuilderscopes (ScopeList value)
 Set requested OAuth scopes.
 
OAuthClientFlowBuilderredirect_uri (std::string value)
 Set the redirect URI used by the authorization code flow.
 
OAuthClientFlowBuildercallback_timeout (std::chrono::seconds value)
 Set the maximum wait time for the authorization callback.
 
OAuthClientFlowBuilderrefresh_skew (std::chrono::seconds value)
 Set the proactive token refresh skew.
 
OAuthClientFlowBuilderclient_id (std::string value)
 Use a preconfigured client_id and skip dynamic registration.
 
OAuthClientFlowBuildercallback (OAuthClientCallback &value)
 Set a non-owning application callback reference.
 
OAuthClientFlowBuildercallback (std::shared_ptr< OAuthClientCallback > value)
 Set an owning application callback.
 
OAuthClientFlowBuildermetadata_endpoint (OAuthMetadataEndpoint &value)
 Set a non-owning metadata endpoint reference.
 
OAuthClientFlowBuildermetadata_endpoint (std::shared_ptr< OAuthMetadataEndpoint > value)
 Set an owning metadata endpoint.
 
OAuthClientFlowBuildertoken_endpoint (OAuthTokenEndpoint &value)
 Set a non-owning token endpoint reference.
 
OAuthClientFlowBuildertoken_endpoint (std::shared_ptr< OAuthTokenEndpoint > value)
 Set an owning token endpoint.
 
OAuthClientFlowBuilderhttp_endpoints (OAuthHttpGet get, OAuthHttpPost post)
 Set the default HTTP metadata and token endpoints.
 
OAuthClientFlowBuilderpkce_generator (PkceGenerator &value)
 Set a non-owning PKCE generator reference.
 
OAuthClientFlowBuilderpkce_generator (std::shared_ptr< PkceGenerator > value)
 Set an owning PKCE generator.
 
OAuthClientFlowBuilderregistration_endpoint (OAuthClientRegistrationEndpoint &value)
 Set a non-owning dynamic client registration endpoint reference.
 
OAuthClientFlowBuilderregistration_endpoint (std::shared_ptr< OAuthClientRegistrationEndpoint > value)
 Set an owning dynamic client registration endpoint.
 
core::Result< std::unique_ptr< OAuthClientFlow > > build () &
 Build the owning flow wrapper.
 
core::Result< std::unique_ptr< OAuthClientFlow > > build () &&
 Build the owning flow wrapper.
 

Detailed Description

Fluent builder for the common OAuth browser authorization flow.


The documentation for this class was generated from the following file: