OfficeDev / Microsoft-Teams-Samples

Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App!
MIT License
946 stars 747 forks source link

How to Implement OAuth for a Bot-Based Message Extension App in Microsoft Teams for Graph API? #1333

Closed purvasanap2001 closed 1 week ago

purvasanap2001 commented 1 month ago

I have created a bot-based message extension app using the Teams Toolkit and need to call the Microsoft Graph API, which requires OAuth implementation. So far, I have created the app in the Teams Developer Portal, registered the app in Azure App registration, and registered the bot in the Bot Framework Developer Portal (dev.botframework.com). However, I am unclear about the OAuth flow and the specific configurations required.

Can someone provide a detailed guide on how the OAuth flow works for a bot-based message extension in Microsoft Teams, the specific configurations needed in the Azure app registration, how to configure permissions and consent for accessing the Microsoft Graph API, and any additional settings required in the Teams Developer Portal or Bot Framework Developer Portal?

Any guidance, code examples, or references to detailed documentation would be highly beneficial.

Dinesh-MSFT commented 1 month ago

Hi @purvasanap2001 - Thanks for raising the query. The same question has been asked here. For more updates, please follow this thread here "https://techcommunity.microsoft.com/t5/teams-developer/how-to-get-access-token-for-graph-api-in-teams-bot-based-message/m-p/4194581#M10405"

microsoft-github-policy-service[bot] commented 1 week ago

Tell us about your experience!

Hi @purvasanap2001! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform.

Best regards, Teams Platform