.NET tricks

Filtered by:
  • claims

Here we are going to find out how to add some additional claims to the user's identity in ASP.NET Core web applications and then use that new claims on our pages. This is a second edition of the earlier [post on the same topic](https://korzh.com/blogs/net-tricks/aspnet-identity-store-user-data-in-claims) which takes into account the changes made in version 2.2 of ASP.NET Core.


By default, ASP.NET Identity allows you to get from the claims only the login (username) of the current user. We are going to describe here how to store there any other information (e.g. first/last name of the user) and how to get stored information in the views.


Different tips and tricks for C# / .NET programmers

Supported by EasyQuery

EasyQuery is a multi-platform solution that lets you embedding ad-hoc reporting or advanced search functionality to your application