I have an Azure App Service running AspNet Core with Web API & WebSockets middleware enabled. Everything works fine when App service authentication is turned OFF.
When Azure AD authentication is turned ON for the App Service, the Web APIs are working fine but WebSocket connections are failing. I am using ADAL.js in the fronted to authenticate the users and set the bearer token in Authorization header for the API calls.
But I am not sure how to set the bearer token while setting up the WebSocket connection. Does anybody know how to achieve this?