How to encrypt JWT security token?
I know this an old post, but I am adding my answer in case if someone is still searching for the answer. This issue is addressed in Microsoft.IdentityModel.Tokens version 5.1.3. There is an overloaded method available in the CreateJwtSecurityToken function which accepts the encrypting credentials to encrypt the token. If the receiver does not validate … Read more