1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-29 13:25:17 +01:00

remove claims endpoint

This commit is contained in:
Kyle Spearrin 2017-10-23 09:32:55 -04:00
parent e0a6bb82d1
commit 229b517f2c

View File

@ -1,6 +1,5 @@
using System; using System;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using System.Linq;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
namespace Bit.Api.Controllers namespace Bit.Api.Controllers
@ -14,12 +13,6 @@ namespace Bit.Api.Controllers
return DateTime.UtcNow; return DateTime.UtcNow;
} }
[HttpGet("~/claims")]
public IActionResult Claims()
{
return new JsonResult(User?.Claims?.Select(c => new { c.Type, c.Value }));
}
[HttpGet("~/version")] [HttpGet("~/version")]
public VersionResponseModel Version() public VersionResponseModel Version()
{ {