Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Extending Windows Identity

Reply
Thread Tools

Extending Windows Identity

 
 
Stokesy
Guest
Posts: n/a
 
      07-15-2005
Hi,

I wan't to implement an reusable login framework which extends on
WindowsIdentity to provide additional attributes which can be filled from the
AD or a Database.

Is the best method to implement IIDentity or to inherit from
WindowsIdentity. If the latter, can someone post a sample on the best way to
do this.

Many Thanks
 
Reply With Quote
 
 
 
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      07-15-2005
Probably the best bet is to implement a custom IPrincipal object with your
special properties on it. You could provide implementation that inherit
from WindowsPrincipal and implement your special interface and also provide
other implementations that implement IPrincipal and your custom interface
such as extending GenericPrincipal. This gives you maximum flexibility
which is nice in a reusable framework.

Joe K.

"Stokesy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I wan't to implement an reusable login framework which extends on
> WindowsIdentity to provide additional attributes which can be filled from
> the
> AD or a Database.
>
> Is the best method to implement IIDentity or to inherit from
> WindowsIdentity. If the latter, can someone post a sample on the best way
> to
> do this.
>
> Many Thanks



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 2.0 Impersonation of fixed identity - truncation of identity JimLad ASP .Net 0 01-16-2009 10:42 AM
HttpContext.Current.User.Identity.Name AND Context.User.Identity.Name; nalbayo ASP .Net 2 11-11-2005 11:12 PM
Difference between System.Web.HttpContext.Current.User.Identity.Name and System.Threading.Thread.CurrentPrincipal.Identity.Name jeremy.rice@alkermes.com ASP .Net Security 5 11-08-2005 05:25 PM
Issue with Identity Impersonation and user identity used passed for trusted SQL connection. Frederick D'hont ASP .Net Security 0 07-25-2005 02:41 PM
Difference between HttpContext.Current.User.Identity and identity Impersonation Giovanni Bassi ASP .Net 0 10-20-2003 02:25 PM



Advertisments