Forum Discussion
karamem0
May 28, 2024Copper Contributor
Supports API-Key or X-Functions-Key in API-based message extension
Hi all, I am tring to imprement a Teams app with API-based message extension. The backend of the API is Azure Funtions HTTP trigger and requires an API key. The API-based message extension supports ...
Prasad_Das-MSFT
Microsoft
May 29, 2024karamem0 - To achieve your requirements, we recommend you give your feedback in Teams Feedback Portal.
karamem0
May 30, 2024Copper Contributor
Thank you for replying, I will post the feedback.
As a workaround, I can convert Beaer token to X-Functions-Key header using APIM.
<set-header name="X-Functions-Key" exists-action="override">
<value>@(Regex.Match(context.Request.Headers.GetValueOrDefault("Authorization",""), "^Bearer (?<key>.+)$").Groups["key"]?.Value)</value>
</set-header>