access_time 4 years ago languageEnglish
more_vert

Retrieve Identity username, email and other information in ASP.NET Core

visibility 34,978 comment 2
The identity system in ASP.NET has evolved over time. If you are using ASP.NET Core, you probably found User property is an instance of ClaimsPrincipal in Controller or Razor views. Thus to retrieve the information, you need to utilize the claims.
info Last modified by Raymond 4 years ago
thumb_up 2

comment Comments

3 months ago link more_vert

I'm glad it helps.

format_quote

person Alvin access_time 4 months ago
Re: Retrieve Identity username, email and other information in ASP.NET Core

Thank you for this. Saved me a lot of time.

4 months ago link more_vert

Follow Kontext

Get our latest updates on LinkedIn.

Want to contribute on Kontext to help others?

Learn more