Table of Contents

TTMSMCPStreamableHTTPTransport.OnValidateAccessToken Event

Handler that decides whether a presented access token is accepted and what it grants.

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

Syntax

property OnValidateAccessToken: TTMSMCPValidateAccessTokenEvent;

Remarks

Required whenever TTMSMCPStreamableHTTPTransport.RequireBearerAuthentication is on; starting the channel without it then raises. There is no built-in token check, so this handler is the whole of the decision. It runs on a connection thread before the request is dispatched, so it must be fast and safe to run concurrently.