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:
@@ -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 }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user