using Microsoft.Owin.Security.OAuth; using System.Threading.Tasks; namespace Thermo.Active.Provider { public class SignalROAuthBearerProvider : OAuthBearerAuthenticationProvider { public override Task RequestToken(OAuthRequestTokenContext context) { var token = context.Request.Query.Get("Authorization"); if (!string.IsNullOrWhiteSpace(token)) { if (context != null) { context.Token = token; base.RequestToken(context); } } return Task.FromResult(null); } } }