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:
parent
e0a6bb82d1
commit
229b517f2c
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Linq;
|
||||
using Bit.Core.Models.Api;
|
||||
|
||||
namespace Bit.Api.Controllers
|
||||
@ -14,12 +13,6 @@ namespace Bit.Api.Controllers
|
||||
return DateTime.UtcNow;
|
||||
}
|
||||
|
||||
[HttpGet("~/claims")]
|
||||
public IActionResult Claims()
|
||||
{
|
||||
return new JsonResult(User?.Claims?.Select(c => new { c.Type, c.Value }));
|
||||
}
|
||||
|
||||
[HttpGet("~/version")]
|
||||
public VersionResponseModel Version()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user