cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::auth::TokenEndpointHandler Class Referenceabstract

Abstract handler for the token endpoint. More...

#include <server_auth_endpoints.hpp>

Public Member Functions

virtual core::Result< TokenSetissue_token (const TokenRequestParams &params)=0
 Process a token request.
 

Detailed Description

Abstract handler for the token endpoint.

The transport calls issue_token() when a POST /token request arrives. The handler validates the grant, exchanges authorization codes or refresh tokens, and returns a token set.

Member Function Documentation

◆ issue_token()

virtual core::Result< TokenSet > mcp::auth::TokenEndpointHandler::issue_token ( const TokenRequestParams params)
pure virtual

Process a token request.

Parameters
paramsParsed form-encoded POST body parameters.
Returns
A token set on success, or an error.

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