Description
This sample demonstrates how to retrieve an Entra ID access token for a signed-in user, and share the token with Copilot Studio over Direct Line, thus enabling seamless SSO.
Getting started
- Follow the instructions on how to configure user authentication with Microsoft Entra ID
- Follow the instructions on how to configure a second app registration for a canvas app. Set the redirect URI in your app registration based on where the sample will be deployed (e.g. localhost, static web app, etc.)
- Replace the values for Client ID, Tenant ID and Token Endpoint under
TODOin index.html - Deploy index.html to a host of your choice
IMPORTANT: This sample requires users to click on a sign-in button. This behavior is just for demonstration purposes, while in production, the initial sign-in should be managed by your application.