I\'m fairly new to JwtSecurityTokens
, and I try to understand the different aspects of it and furhtermore the whole claimsidentity
and claimp
The algorithm HS256 requires the SecurityKey.KeySize
to be greater than 128 bits and your key has just 48. Extend it by adding at least 10 more symbols.
As for "PII is hidden" part, it was done as a part of GDPR compliance effort to hide any stack or variable info in logs. You should enable additional details with:
IdentityModelEventSource.ShowPII = true;
You should add enough characters for you secret key. when you set your secret key here,
//your SECRET_KEY = "abcdef"
new SymmetricSecurityKey(Encoding.UTF8.GetBytes(SECRET_KEY));
change it to
new SymmetricSecurityKey(Encoding.UTF8.GetBytes("somethingyouwantwhichissecurewillworkk"));
this should work.