Generally, Principal is a security context of the user and Identity is the
identity of that user belonging to that context (principal is tied to
currently running thread and principal contains identity objects).
For example with Windows authentication WindowsPrincipal stores the Windows
roles associated with the current user. WindowsIdentity (accessed via
WindowsPrincipal's IPrincipal implementation) holds the identity part (user
name and such).
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
Hello all, just a quick question to clarify.
What's the difference between SitePrincipal and SiteIdentity?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.