here is my JWT. My HttpContext.User doesn't match with JWT.
Plese help me...
here is my JWT. My HttpContext.User doesn't match with JWT.
Plese help me...
Usually,setting the MapInboundClaims=false should stop the library from renaming your claims.
But you could try to add the following to your startup class:
public void ConfigureServices(IServiceCollection services)
{
// By default, Microsoft has some legacy claim mapping that converts
// standard JWT claims into proprietary ones. This removes those mappings.
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
JwtSecurityTokenHandler.DefaultOutboundClaimTypeMap.Clear();
..