Open in gallery
This sample is best viewed in the interactive gallery. Open now ยท Stay on this page

AAD Token Provider Bot Extension

AAD Token Provider Bot Extension

This sample demonstrates how to integrate a bot within a SharePoint Online portal supporting authentication to access Azure AD protected APIs like Microsoft graph resources. Behind the scenes, this sample uses the AADTokenProvider utility class provided with SPFx > 1.6.0 to seamlessly get an access token for the current user and send it to the bot. This way, the user is not prompted anymore for login to interact with the bot, improving overall experience.

Open this sample in the gallery (popup panel): Open in gallery

Source: https://github.com/pnp/sp-dev-fx-extensions/tree/main/samples/react-aadtokenprovider-bot