Table of Contents

TTMSMCPClientTransportHTTPOAuthNeededEvent Event Type

Reports that the server refused a request because it is not authorized, and passes on the challenge the server sent with the refusal.

API unit family: TMS.MCP.Client.Transport.HTTP

Remarks

Raised on the worker whose request was refused. The transport answers it by running an authorization flow and repeating the refused message afterwards.

Parameters

Name Description
Sender Worker whose request was refused. The message it was carrying can be read from it so that the request can be repeated once authorization succeeds.
AHTTPStatus Status code the server refused with.
AWWWAuthenticateHeader Raw authorization challenge sent with the refusal, which names the authorization server and the scope being asked for. Empty when the server sent no challenge.