-
Notifications
You must be signed in to change notification settings - Fork 108
Description
I have a sample ASP NET Core web app that I'm hooking up to Azure SignalR. For authentication, I'm using an existing Identity Server. When the initial login authentication occurs, the claim type for the user's name is "name" (the JWT claim type name). When adding AddOpenIdConnect, I set x.TokenValidationParameters.NameClaimType = "name";
This works, and when I call HttpContext.SignInAsync(User), the User.Identity.Name is correct.
However, once a call makes it into the Hub class, Context.User.Identity.Name is null, and I discovered that the NameClaimType is no longer "name", but has reverted to "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
I removed the AzureSignalR specific calls in Startup.cs and the NameClaimType is persisted as "name". so it seems to be a bug with the Azure implementation of SignalR. Is there some extra configuration I am missing, or is this really a bug?