Re: [ADVANCED-DOTNET] IPrincipal and IIdentity

2007-12-11 Thread Miika Mäkinen
Thanks Brandon... This text in MSDN is the reason why I was asking... to me very cryptic explanations! On Dec 11, 2007 10:34 PM, Brandon Willoughby <[EMAIL PROTECTED]> wrote: > Taken from the MSDN: > > IIdentity: > > An identity object represents the user on whose behalf the code is > running. >

Re: [ADVANCED-DOTNET] IPrincipal and IIdentity

2007-12-11 Thread Brandon Willoughby
Taken from the MSDN: IIdentity: An identity object represents the user on whose behalf the code is running. IPrinciple: A principal object represents the security context of the user on whose behalf the code is running, including that user's identity (IIdentity) and any roles to which they bel

Re: [ADVANCED-DOTNET] IPrincipal and IIdentity

2007-12-11 Thread Sébastien Lorion
Seeing that the only method in IPrincipal is bool IsInRole(string role), one could have made it always return false when not linked to a role provider ... I too was a bit confused by that at the first time. Sébastien On 12/10/07, Marc Brooks <[EMAIL PROTECTED]> wrote: > > Simply put, IIdentity is