Get User Id from Web API
This commit is contained in:
parent
038d680831
commit
9e6a4f7d13
26 changed files with 83 additions and 60 deletions
|
|
@ -9,7 +9,6 @@ namespace Yavsc.Helpers
|
|||
{
|
||||
public static class UserHelpers
|
||||
{
|
||||
|
||||
public static string GetUserId(this ClaimsPrincipal user)
|
||||
{
|
||||
return user.FindFirstValue("sub");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue