WIP Accesses
This commit is contained in:
parent
8de5fdb5f7
commit
ce8f3ebce0
869 changed files with 217487 additions and 2851 deletions
|
|
@ -12,7 +12,7 @@ namespace Yavsc.Helpers
|
|||
|
||||
public static string GetUserId(this ClaimsPrincipal user)
|
||||
{
|
||||
return user.FindFirstValue(ClaimTypes.NameIdentifier);
|
||||
return user.FindFirstValue("sub");
|
||||
}
|
||||
|
||||
public static string GetUserName(this ClaimsPrincipal user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue