This code sample demonstrates how to create a SharePoint SPFx component which is a wrapper for a copilot, created with Microsoft Copilot Studio. The SPFx component included in the sample supports SSO, providing seamless authentication for users interacting with the copilot.
-
Create an app registration in Azure and configure authentication settings for your copilot in Copilot Studio
-
Create an app registration for your SharePoint site
-
Clone this repo and cd into the SharePointSSOComponent folder
-
Install the dependencies and build the component:
npm install gulp bundle --ship gulp package-solution --ship
-
Upload the component to your tenant app catalog and enable on your site
For more detailed instructions, please refer to the step-by-step setup guide.