Default mapping logic from jwt payload to claims

Hey, I have asp.net core web api with jwt authentication. It's fairly "default", something you would find on most tutorials. If I would generate token it would have payload:
{"sub":"user","exp":1662070302}
{"sub":"user","exp":1662070302}
So whenever token is successfully validated I'm expecting to have two claims with same keys as types and values. But for some reason I'm getting the following:
Type: $http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier Value: user
Type: $exp Value: 1662070302
Type: $http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier Value: user
Type: $exp Value: 1662070302
Because of this I have a question. Is there a flag of some sort to disable this key to type override or I have to override this override?
1 Reply
Fruity Mike
Fruity Mike3y ago
With a bit of more reading I have found "MapInboundClaims" flag when it's false any remapping is ignored.
Want results from more Discord servers?
Add your server