cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::server::AuthChallengeConfig Struct Reference

Configuration for the HTTP WWW-Authenticate challenge header. More...

#include <http_transport.hpp>

Public Attributes

std::string scheme = "Bearer"
 Authentication scheme (default: "Bearer").
 
std::optional< std::string > resource_metadata_url
 URL of the RFC 9728 Protected Resource Metadata document.
 
std::optional< std::string > scope
 Scopes required to access the resource.
 

Detailed Description

Configuration for the HTTP WWW-Authenticate challenge header.

Member Data Documentation

◆ resource_metadata_url

std::optional<std::string> mcp::server::AuthChallengeConfig::resource_metadata_url

URL of the RFC 9728 Protected Resource Metadata document.

When set, the WWW-Authenticate header includes resource_metadata="<url>".

◆ scope

std::optional<std::string> mcp::server::AuthChallengeConfig::scope

Scopes required to access the resource.

When set, the WWW-Authenticate header includes scope="<scopes>".


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