mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
WIP: Added IdentityServer4 to API via Bearer2 auth scheme
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Linq;
|
||||
|
||||
namespace Bit.Api.Controllers
|
||||
{
|
||||
@ -11,5 +12,11 @@ namespace Bit.Api.Controllers
|
||||
{
|
||||
return DateTime.UtcNow;
|
||||
}
|
||||
|
||||
[HttpGet("claims")]
|
||||
public IActionResult Claims()
|
||||
{
|
||||
return new JsonResult(User.Claims.Select(c => new { c.Type, c.Value }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user