1
0
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:
Kyle Spearrin
2017-01-11 00:34:16 -05:00
parent c99f8efe79
commit 77ca47a266
7 changed files with 172 additions and 7 deletions

View File

@ -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 }));
}
}
}