locked
Get windows user in .Net5 SignalR Hub RRS feed

  • Question

  • User712744324 posted

    Hi,

    Inside a SignalR hub I am trying to get the user who is authenticated on the client system. But whatever I try, I always get the IISAPPPOOL user.
    IWA itself works fine, even in the _host.cshtml I get the correct user (HttpContext.User?.Identity?.Name).

    In startup.cs every consideration I found is implemented:
          services.AddAuthentication(IISDefaults.AuthenticationScheme);

    and 

          app.UseAuthorization();
          app.UseAuthentication();

    On client side UseDefaultCredentials is true

    What else is missing?

    Thanks in advance

    Tuesday, January 5, 2021 10:53 AM

All replies