Table of Contents

TTMSMCPStreamableHTTPTransport.ProtectedResourceMetadata Property

Protected-resource metadata document to serve instead of the one the channel would build. nil by default.

API unit family: TMS.MCP.Transport.StreamableHTTP Declaring type: TTMSMCPStreamableHTTPTransport Type: TJSONObject

Syntax

property ProtectedResourceMetadata: TJSONObject;

Remarks

Only consulted while TTMSMCPStreamableHTTPTransport.RequireBearerAuthentication is on. Setting it overrides the document built from TTMSMCPStreamableHTTPTransport.AuthorizationServers and TTMSMCPStreamableHTTPTransport.ResourceScopesSupported, so those are then no longer reflected in what clients see. The object stays the caller's: the channel neither takes a copy nor frees it, so it must outlive the channel and be freed by whoever created it.