For a Copilot Studio agent, I'm unable to get Direct Line channel security working

Scott Hertel 5 Reputation points
2024-12-13T14:34:41.8366667+00:00

I've added Direct Line security via the "web channel security" option on the Copilot agent, this displays two secrets that are available to retrieve Direct Line tokens. I then checked the "require secure access" option as this makes a token required in a Direct Line interaction and we would like the ability to not have random public actors interact with the agent.

After retrieving a token and when attempting to converse with the agent, it responds with the following:

An error has occurred. Error code: AuthenticationNotConfigured Conversation Id: redacted-us Time (UTC): 2024-12-13T14:11:16.020Z.

Direct Line security seems to be tailor made for our use case: a web application not secured via Entra ID but requiring secure communication with a Copilot agent.

Microsoft Copilot | Other

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.