IdentityExtensions.GetId Method

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

GetId(ClaimsIdentity)

Get the user id if it exists, otherwise null.

public static string GetId(this ClaimsIdentity identity)

Parameters

identity
System.Security.Claims.ClaimsIdentity

A claims-based identity.

Returns

string