18 lines
No EOL
368 B
C#
18 lines
No EOL
368 B
C#
using System.Linq;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace Sledgemapper.Api.Controllers
|
|
{
|
|
[Route("identity")]
|
|
[Authorize]
|
|
public class IdentityController : ControllerBase
|
|
{
|
|
[HttpGet]
|
|
public IActionResult Get()
|
|
{
|
|
return new JsonResult(from c in User.Claims select new { c.Type, c.Value });
|
|
}
|
|
}
|
|
|
|
} |