|
cxxmcp 1.1.6
C++ MCP SDK
|
Fluent builder for the common OAuth browser authorization flow. More...
#include <client_orchestrator.hpp>
Public Member Functions | |
| OAuthClientFlowBuilder (std::string resource_url) | |
| OAuthClientFlowBuilder & | resource_url (std::string value) |
| Set the MCP protected resource URL. | |
| OAuthClientFlowBuilder & | client_name (std::string value) |
| Set the display name used during dynamic client registration. | |
| OAuthClientFlowBuilder & | scopes (ScopeList value) |
| Set requested OAuth scopes. | |
| OAuthClientFlowBuilder & | redirect_uri (std::string value) |
| Set the redirect URI used by the authorization code flow. | |
| OAuthClientFlowBuilder & | callback_timeout (std::chrono::seconds value) |
| Set the maximum wait time for the authorization callback. | |
| OAuthClientFlowBuilder & | refresh_skew (std::chrono::seconds value) |
| Set the proactive token refresh skew. | |
| OAuthClientFlowBuilder & | client_id (std::string value) |
| Use a preconfigured client_id and skip dynamic registration. | |
| OAuthClientFlowBuilder & | callback (OAuthClientCallback &value) |
| Set a non-owning application callback reference. | |
| OAuthClientFlowBuilder & | callback (std::shared_ptr< OAuthClientCallback > value) |
| Set an owning application callback. | |
| OAuthClientFlowBuilder & | metadata_endpoint (OAuthMetadataEndpoint &value) |
| Set a non-owning metadata endpoint reference. | |
| OAuthClientFlowBuilder & | metadata_endpoint (std::shared_ptr< OAuthMetadataEndpoint > value) |
| Set an owning metadata endpoint. | |
| OAuthClientFlowBuilder & | token_endpoint (OAuthTokenEndpoint &value) |
| Set a non-owning token endpoint reference. | |
| OAuthClientFlowBuilder & | token_endpoint (std::shared_ptr< OAuthTokenEndpoint > value) |
| Set an owning token endpoint. | |
| OAuthClientFlowBuilder & | http_endpoints (OAuthHttpGet get, OAuthHttpPost post) |
| Set the default HTTP metadata and token endpoints. | |
| OAuthClientFlowBuilder & | pkce_generator (PkceGenerator &value) |
| Set a non-owning PKCE generator reference. | |
| OAuthClientFlowBuilder & | pkce_generator (std::shared_ptr< PkceGenerator > value) |
| Set an owning PKCE generator. | |
| OAuthClientFlowBuilder & | registration_endpoint (OAuthClientRegistrationEndpoint &value) |
| Set a non-owning dynamic client registration endpoint reference. | |
| OAuthClientFlowBuilder & | registration_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. | |
Fluent builder for the common OAuth browser authorization flow.