Authorize attribute for SignalR using OWIN Application Cookies

I wanted to authenticate my SignalR connections using my OWIN application cookie. I couldn’t find any way to do this so here is the attribute I had to make. Is this necessary? If not, please let me know…