I am failing to see a simple way to add bearer token auth to a SignalR hub. The instructions on how to do this on the SignalR client are easy enough, and some examples show an
Authorize
Authorize
attribute on the hub class, but I have added my own custom
IAuthorizationFilter
IAuthorizationFilter
attribute to the class (which is used and works fine with controllers) but it is ignored when calling into the hub.
What would the correct way to do SignalR bearer token auth be? Thanks!