Principal and Identity

G

Guest

Hello all, just a quick question to clarify.

What's the difference between SitePrincipal and SiteIdentity?

Thanks,

J
 
T

Teemu Keiski

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
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top