Azure / azure-signalr

Azure SignalR Service SDK for .NET
https://aka.ms/signalr-service
MIT License
427 stars 101 forks source link

Add more system claims and 'sub' support #1916

Closed vicancy closed 9 months ago

vicancy commented 9 months ago

Fix https://github.com/Azure/azure-signalr/issues/1911 by:

  1. Consider all string type system claims as user claims, rename and reconstruct in the SDK to avoid breaking changes to the customers
  2. Special handling for "sub" claim, since "sub" claim is also used by SignalR as the UserId of the connection. Keep the first "sub" as it is, and rename other "sub" (if any) to user claims.