I am trying to understand the security model behind .NET based on claims for the application (Relying Party).
I know there are 2 major classes:
- ClaimsPrincipal - security context for the running process
- ClaimsIdentity - stores information about the user - authentication status and claims
The thing is, ClaimsPrincipal contains just a collection of identities and points to the currently used one but as far as I know, the principal usually never contains more than 1 identity and even if it would - the user is never logged in with 2 or more identities.
To me, the ClaimsPrincipal, other than using it to get the current identity, excuse my ignorance, it's useless.
What am I missing other than what I stated and let's say backwards compatiblity in regard to the ClaimsPrincipal class?