I customize IIdentity
and IPrincipal
adding a few more properties in IIdentity
.
You can obtain a strongly typed instance @User.Identity
for my custom class? Without having to make conversions in cast.
I thought of something like razor customize the View, but do not even know where to start.