IdentityExtensions.GetIdClaim Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GetIdClaim(ClaimsIdentity)

Get the user id claim if it exists, otherwise null.

public static Claim GetIdClaim(this ClaimsIdentity identity)

Parameters

identity
System.Security.Claims.ClaimsIdentity

A claims-based identity.

Returns

System.Security.Claims.Claim