© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
Pokey

❔ SingalR Hub Bearer Token Auth

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!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Scalar with Bearer Token
C#CC# / help
12mo ago
ASP .NET Core JWT Authentication, Bearer error="invalid_token"
C#CC# / help
3y ago
Detailed 401 errors SPA bearer token
C#CC# / help
12mo ago
Implementing auth0 with .NET Swagger bearer token authorize seems to be working, but not tables
C#CC# / help
2y ago