I can retrieve ClaimsIdentity in by .net core 2.0 app in development mode but I cannot do so in production: My code:
var identity = (ClaimsIdentity)User.Identity;
IEnumerable<Claim> claims = identity.Claims;
var claimType = "PID";
var claim = identity.FindFirst(claimType);
var pgl = claim == null ? string.Empty : claim.Value;
Not sure what the reason might be but I found a link in stackoverflow but the solution is unclear:
Could someone please kndly help me?