IdentityExtensions.GetUsername Method

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

GetUsername(ClaimsIdentity)

Get the username if it exists, otherwise null.

public static string GetUsername(this ClaimsIdentity identity)

Parameters

identity
System.Security.Claims.ClaimsIdentity

Returns

System.String