bce591e63c58ae673071e991dcabb38656cf7abc
JwtBearerOptions.MapInboundClaims defaulted to true, which mapped the
'sub' claim to ClaimTypes.NameIdentifier in HttpContext.User. Logout
endpoint read User.FindFirst("sub") and got null, returning 401 for
any authenticated caller.
Fix: set MapInboundClaims=false and pin NameClaimType="name" so the
JWT claims land in the principal with their original names, aligning
with how JwtService.GetPrincipalFromExpiredToken (used by refresh)
already consumes them.
Unblocks Login_Refresh_Logout_FullFlow integration test (15/15 green).
Description
SIG-CM 2.0 - Sistema de gestión comercial - El Día.
Languages
C#
63.9%
TypeScript
29.4%
TSQL
6.1%
CSS
0.5%