// we need to add the user id to the headers as this is expected by the function and does not have context of the user
headerItems.push({
id: "authorization",
key: "authorization",
value: await userHashedId(),
});
In my use case I am connecting to the Azure DevOps API. The API requires an 'Authorization' header with a personal access token issued by DevOps.
The current logic would apply two headers (authorization + Authorization) which breaks the api call.
Recommend we look at refactoring the requirement for that forced authorization header to help support more api call scenarios.
In chat-api-dynamic-extensions.ts there is the following code.
In my use case I am connecting to the Azure DevOps API. The API requires an 'Authorization' header with a personal access token issued by DevOps.
The current logic would apply two headers (authorization + Authorization) which breaks the api call.
Recommend we look at refactoring the requirement for that forced authorization header to help support more api call scenarios.
Thanks again for the great repo!