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

Abstract handler for the token revocation endpoint. More...

#include <server_auth_endpoints.hpp>

Public Member Functions

virtual core::Result< core::Unitrevoke_token (const TokenRevocationParams &params)=0
 Process a token revocation request.
 

Detailed Description

Abstract handler for the token revocation endpoint.

The transport calls revoke_token() when a POST /revoke request arrives.

Member Function Documentation

◆ revoke_token()

virtual core::Result< core::Unit > mcp::auth::TokenRevocationEndpointHandler::revoke_token ( const TokenRevocationParams params)
pure virtual

Process a token revocation request.

Parameters
paramsParsed form-encoded POST body parameters.
Returns
Unit on success (even if the token was already invalid).

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