1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 11:13:27 +00:00

re-working claims for aspnet core identity integration and backwards compat

This commit is contained in:
Kyle Spearrin
2017-01-11 21:46:36 -05:00
parent 54711e634b
commit 038c98cfaf
8 changed files with 35 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ namespace Bit.Api.Controllers
[HttpGet("claims")]
public IActionResult Claims()
{
return new JsonResult(User.Claims.Select(c => new { c.Type, c.Value }));
return new JsonResult(User?.Claims?.Select(c => new { c.Type, c.Value }));
}
}
}