HostedMcpServerTool.AuthorizationToken Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the OAuth authorization token that the AI service should use when calling the remote MCP server.
public:
property System::String ^ AuthorizationToken { System::String ^ get(); void set(System::String ^ value); };
public string? AuthorizationToken { get; set; }
member this.AuthorizationToken : string with get, set
Public Property AuthorizationToken As String
Property Value
Remarks
When set, this value is automatically added to the Headers dictionary with the key "Authorization" and the value "Bearer {token}". Setting this property will overwrite any existing "Authorization" header in Headers. Setting this property to null will remove the "Authorization" header from Headers.