Hi there
I have an ASP.NET Core 3.1 backend using SignalR to communicate with clients, rather than ASP.NET Core controllers. I am struggling to get access to the JWT, in particular, the sub
from the JWT which I need. The example code given for an ASP.NET Core app doesn’t include accessing the sub
from the JWT, although the quickstart includes a folder 01 - authorization
, which gives me hope that there’s a subsequent example with some more juicy goodness. Am I right in thinking this?
In any event, perhaps I should start from the basics. How do I access the sub
from the JWT in ASP.NET Core 3.1 controllers? Perhaps then I will have a better idea of how I’m going to access them from within my SignalR hubs.
I created a Stackoverflow post for this issue here: c# - Auth0, .NETCoreApp 3.1 and SignalR: obtaining decoded JWT - Stack Overflow
Any help greatly appreciated!
Mark