IdentityExtensions Class
Provides extension methods to get the user name or user ID from an identity.
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | FindFirstValue(ClaimsIdentity, String) | Returns the claim value for the first claim with the specified type. |
![]() ![]() | GetUserId(IIdentity) | Returns the user ID using the UserIdClaimType. |
![]() ![]() | GetUserId<T>(IIdentity) | Return the user id using the UserIdClaimType |
![]() ![]() | GetUserName(IIdentity) | Returns the user name using the UserNameClaimType. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:

