mirror of
https://github.com/bitwarden/server
synced 2025-12-11 22:03:38 +00:00
remove claims endpoint
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user