Forum Discussion
Authentication with API based messaging extension
Hey Everyone!
We have created API based messaging extension with Open API specification file. Currently we have uploaded the custom app as API based messaging extension on Teams. Without authentication, I'm able to run this custom app on M365 copilot as well as run in personal app messaging extension. However, when I implement authentication and enable auth type as "MicrosoftEntra" and setup my AAD accordingly, I could generate authentication token from my personal app messaging extension. But M365 copilot is not able to generate a token for my open API when this plugin is enabled in M365 copilot. Could you please help me understand the issue and what needs to be done here?
we have referred to below links. The suggestions given does not work for M365 auth.
1. https://learn.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/build-api-based-message-extension?tabs=token-v2
2. https://learn.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/api-based-overview
- febrianitamagolaCopper ContributorMakalah
- korhankonarayCopper Contributor
I am also facing the same problem. Is there a solution for this? Although I was able to get tokens from teams chat with my API based message extension, I could not get tokens from co-pilot.