Exemple #1
0
 public IActionResult Get()
 {
     return(Json(new {
         sub = User.GetClaim(ClaimTypes.NameIdentifier),
         name = User.GetClaim(ClaimTypes.Name)
     }));
 }