|
cxxmcp 1.1.6
C++ MCP SDK
|
Callback interface for the OAuth client orchestrator. More...
#include <client_orchestrator.hpp>
Public Member Functions | |
| virtual core::Result< core::Unit > | present_authorization_url (const std::string &url)=0 |
| Present the authorization URL to the user (e.g. | |
| virtual core::Result< std::pair< std::string, std::string > > | wait_for_callback (std::chrono::seconds timeout)=0 |
| Wait for the authorization code callback. | |
Callback interface for the OAuth client orchestrator.
Applications implement these methods to provide browser launching, redirect receiving, and user interaction. This keeps the orchestrator free of platform-specific code.
|
pure virtual |
Present the authorization URL to the user (e.g.
open a browser).
| url | The full authorization URL to present. |
|
pure virtual |
Wait for the authorization code callback.
This method blocks until the user completes the authorization flow and the redirect delivers the authorization code, or until timeout.
| timeout | Maximum time to wait. |