How to fix broken web chat app after Microsoft Entra ID authentication login added

Peter Daniels 40 Reputation points
2024-04-30T15:00:03.5866667+00:00

I had a chat app using Azure web app and Web PubSub working perfectly using the github example: samples/javascript/chatapp/nativeapi

I made no changes to code and added the microsoft entra ID authentication requirement according the default instructions for Workforce configuration (current tenant) which stated "No SDKs, specific languages, or changes to application code are required." https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-authentication-app-service?tabs=workforce-configuration

I logged into the new login authentication screen and my app launched what appeared to be normally. However, after connection indicated through Web PubSub, the websocket showed it was closed on the next input. I'm not sure what I'm doing wrong, if no code changes are required and the app was working fine before adding authentication. When I deleted the app registration to microsoft entra ID it goes back to working normally. What am I missing?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,050 questions
0 comments No comments
{count} votes