ClaimsPrincipal principal = new ClaimsPrincipal(identity);
Controlling permissions is security-sensitive. It has led in the past to the followi