79271105

Date: 2024-12-11 09:14:36
Score: 2
Natty:
Report link

I know this question might be a little bit old, you can pass a JsonClaimValueTypes.Json as valuetype to the new claim, this will form json object correctly, this json valuetype is under "System.IdentityModel.Tokens.Jwt" namespace

for example: claims.Add(new Claim( "Key", ,JsonClaimValueTypes.Json));

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohammed Jawad