-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add support for authenticated agents that require Entra ID (Azure AD) tokens to establish a Direct Line conversation.
Motivation
Many enterprise bots require user authentication via Entra ID before they can interact. Currently the library only supports Copilot Studio agents configured with "No authentication". Supporting Entra ID would unlock enterprise scenarios where:
- The agent needs to know the user's identity
- The agent calls downstream APIs on behalf of the user (OBO flow)
- The organization requires authenticated access to the bot
Possible Approach
- Add a
data-webchat-authattribute (e.g.,entra) - Add
data-webchat-client-idanddata-webchat-tenant-idattributes - Use MSAL.js to acquire a token, then exchange it for a Direct Line token
- Handle token refresh for long-running conversations
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request