SyntaxFix
Write A Post
Hire A Developer
Questions
According to the ControllerBase class, you can get the claims for the user executing the action.
here's how you can do it in 1 line.
var claims = User.Claims.ToList();