Fix: SignalR Authorize & Firefox Compatibility
Changes in architecture to support authorization and temporary workaround for NTLM in Firefox (to be removed in SignalR 2.x). Thanks to @davidfowl
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
using Microsoft.AspNet.SignalR;
|
||||
using Disco.BI.Interop.SignalRHandlers;
|
||||
|
||||
namespace Disco.Web.Areas.Public
|
||||
{
|
||||
@@ -16,8 +17,8 @@ namespace Disco.Web.Areas.Public
|
||||
|
||||
public override void RegisterArea(AreaRegistrationContext context)
|
||||
{
|
||||
context.Routes.MapConnection<BI.Interop.SignalRHandlers.UserHeldDevices>(
|
||||
"Public_UserHeldDevices_Notifications", "Public/UserHeldDevices/Notifications");
|
||||
context.Routes.MapConnection<UserHeldDeviceNotifications>(
|
||||
"Public_UserHeldDevices_Notifications", "Public/UserHeldDevices/Notifications", new ConnectionConfiguration(), SignalRAuthenticationWorkaround.AddMiddleware);
|
||||
|
||||
context.MapRoute(
|
||||
"Public_Credits",
|
||||
|
||||
Reference in New Issue
Block a user