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

Abstract handler for the authorization endpoint. More...

#include <server_auth_endpoints.hpp>

Public Member Functions

virtual core::Result< AuthorizationDecisionauthorize (const AuthorizationRequestParams &params)=0
 Process an authorization request.
 

Detailed Description

Abstract handler for the authorization endpoint.

The transport calls authorize() when a GET /authorize request arrives. The handler validates the request, presents consent (if needed), generates an authorization code, and returns the redirect information.

For interactive flows, the handler may block until the user grants consent.

Member Function Documentation

◆ authorize()

virtual core::Result< AuthorizationDecision > mcp::auth::AuthorizationEndpointHandler::authorize ( const AuthorizationRequestParams params)
pure virtual

Process an authorization request.

Parameters
paramsParsed query parameters from the authorization request.
Returns
A redirect with authorization code, or an error. On error the transport returns an error response (or redirects with error params if a redirect_uri is available).

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