Azure / azure-signalr

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

[Breaking Change][Upcoming] Add strong type validation for JWT registered claims #1911

Closed JialinXin closed 9 months ago

JialinXin commented 9 months ago

Background

.NET8 has introduced a break change that impacts to JWT token registered claims type validations. And SDK needs to follow this to avoid customer adding wrong claims and lead to potential failure.

Additional context

Related Incident in Azure SignalR Service

Start Time

Impacts

Customers who are set incorrect registered claims like iss/sub to array string will get 401 in negotiation to service.

Root Cause

New release in SignalR Service upgrade the framework to .NET8 and introduce this break change in JWT token where leads to deserialization failure when check the token.

Fix

Rollback for impacting customers and SignalR service will provide a temporary compatible version during transition period. Besides, service will inform customers of this upcoming break changes and need to correct the behavior in a few months.

Recovery

Rollback is completed on 2/6.