Principal and Identity

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all, just a quick question to clarify.

What's the difference between SitePrincipal and SiteIdentity?

Thanks,

J
 
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?

Thanks,

J
 
Back
Top