79690407

Date: 2025-07-04 15:34:37
Score: 1
Natty:
Report link

After so many trial and errors I think the base reason for this behavior is mostly for renaming the jwt fields when creating them so I used this line of code before generating the claims:

JwtSecurityTokenHandler.DefaultOutboundClaimTypeMap.Clear();

And now JwtSecurityTokenHandler write tokens and read them with their default names.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: mostafa khaleghi