We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
public static class GetOwnerId { public static Guid GetOwnerIdFromClaims(this ClaimsPrincipal user) { var ownerIdClaim = user.FindFirstValue(ClaimTypes.NameIdentifier); return Guid.TryParse(ownerIdClaim, out var ownerId) ? ownerId : Guid.Empty; } }
There was an error while loading. Please reload this page.