Re: ASP.NET 2.0 Authentication pattern
From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 06/09/05
- Next message: Mircea Pleteriu: "Re: Cumputer intrusion"
- Previous message: [MSFT]: "RE: Forms Authentication Timeout with Frames"
- In reply to: Brock Allen: "Re: ASP.NET 2.0 Authentication pattern"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 08 Jun 2005 23:05:56 -0700
Hello Brock,
hey, brock is back, and he is absolutely right :)
it is comparable to IIdentity and IPrincipal - one for authentication and
one for authorization.
So i guess the final question is - where is the proposed place to store additional
user info in asp2??
I guess that's profile - but at least it is not Role or Membership.
Decide yourself if you want to use the profile feature for that - or if you
handroll that.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
>> Usually my authentication pattern in 1.x was:
>> ...
>> - create custom IIdentity for additional user information
> This is where the thinking is different in ASP.NET 2.0 (at least by
> default). You need to think about authentication as a seperate "silo"
> of functionality than profile data for your users. The provider
> architecture handles these discrete areas and makes explicit
> boundaries for the functionality. Membership Providers are for
> managing authentication information which is different than the
> Profile Provider which is geared for user data which is different than
> the Role Provider which manages role mappings. Also, for each of these
> they may actually store their respective data in entirely different
> data stores (SqlServer, vs. AD, vs. an XML document vs. whatever).
> What they all have in common is User.Identity.Name.
>
> So where you used to think about all of these various bits of data
> jammed into one big table, now the model leans toward seperating each
> one of these areas out into its own provider and backing data store.
> This, while different and possibly a hassle, provides the most
> flexibility. Flexibility comes at a cost.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
- Next message: Mircea Pleteriu: "Re: Cumputer intrusion"
- Previous message: [MSFT]: "RE: Forms Authentication Timeout with Frames"
- In reply to: Brock Allen: "Re: ASP.NET 2.0 Authentication pattern"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|