microsoft / microsoft/botframework-webchat-embed
Support Entra ID authentication for Direct Line
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the embed SDK's handling of data-webchat attributes and its Direct Line token exchange, then assess the proposed Entra ID attributes, MSAL.js acquisition, and token refresh. Done should include authenticated conversation establishment and refresh for long-running conversations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, authentication, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100