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