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: https://stackoverflow.com/questions/64108175/auth0-netcoreapp-3-1-and-signalr-obtaining-decoded-jwt
Any help greatly appreciated!