Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Custom Security Object - How to??

Reply
Thread Tools

Custom Security Object - How to??

 
 
seal
Guest
Posts: n/a
 
      07-13-2005
Hi

I work for a company that has user and user roles in the database and a
very, very complicated long list of rules on how to let a person see the data
from a page or control. My question is I want to re-write the security object
and I am looking for suggestions as to what the best way to do this would be.

Any suggestions?
 
Reply With Quote
 
 
 
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      07-13-2005
Hello seal,

What do you mean with Security Object??


---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Hi
>
> I work for a company that has user and user roles in the database and
> a very, very complicated long list of rules on how to let a person see
> the data from a page or control. My question is I want to re-write the
> security object and I am looking for suggestions as to what the best
> way to do this would be.
>
> Any suggestions?
>




 
Reply With Quote
 
 
 
 
seal
Guest
Posts: n/a
 
      07-14-2005
Hi Dominick

Thanks for the response. By Secutiy Object, I mean my own dll that will
handle the decision that a particular client that is part of a particular
group (defined by us, in this case lets say a data_entry user vs. an
administrator user) can or cannot see data on a page. We need to restrict
some users to only see their clients and others can see their clients as well
as clients that they have what we call a partnership with. I was going down
the path of creating my own custom object that would use the IPrincipal
interface and each page in our database would have a particular role assiged
to it, so that if a user does not match the role he would be re-directed to a
page that politely tells him he cannot see this clients data. Make any sense?

"Dominick Baier [DevelopMentor]" wrote:

> Hello seal,
>
> What do you mean with Security Object??
>
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
> > Hi
> >
> > I work for a company that has user and user roles in the database and
> > a very, very complicated long list of rules on how to let a person see
> > the data from a page or control. My question is I want to re-write the
> > security object and I am looking for suggestions as to what the best
> > way to do this would be.
> >
> > Any suggestions?
> >

>
>
>
>

 
Reply With Quote
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      07-14-2005
Hello seal,

so if it all boils down to groups - IPrincipal is the perfect place - you
may not even have to create your own implementation, just couple the user
with your application roles in Application_AuthenticateRequest.

i have a sample which may get you started:
http://www.leastprivilege.com/PermaL...0-bc8cfbec4c3a

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Hi Dominick
>
> Thanks for the response. By Secutiy Object, I mean my own dll that
> will handle the decision that a particular client that is part of a
> particular group (defined by us, in this case lets say a data_entry
> user vs. an administrator user) can or cannot see data on a page. We
> need to restrict some users to only see their clients and others can
> see their clients as well as clients that they have what we call a
> partnership with. I was going down the path of creating my own custom
> object that would use the IPrincipal interface and each page in our
> database would have a particular role assiged to it, so that if a user
> does not match the role he would be re-directed to a page that
> politely tells him he cannot see this clients data. Make any sense?
>
> "Dominick Baier [DevelopMentor]" wrote:
>
>> Hello seal,
>>
>> What do you mean with Security Object??
>>
>> ---------------------------------------
>> Dominick Baier - DevelopMentor
>> http://www.leastprivilege.com
>>> Hi
>>>
>>> I work for a company that has user and user roles in the database
>>> and a very, very complicated long list of rules on how to let a
>>> person see the data from a page or control. My question is I want to
>>> re-write the security object and I am looking for suggestions as to
>>> what the best way to do this would be.
>>>
>>> Any suggestions?
>>>




 
Reply With Quote
 
seal
Guest
Posts: n/a
 
      07-15-2005
Dominick

Thank you for taking the time to respond, I feel better knowing that I was
going down the right path. Thanks for the examples as well.



"Dominick Baier [DevelopMentor]" wrote:

> Hello seal,
>
> so if it all boils down to groups - IPrincipal is the perfect place - you
> may not even have to create your own implementation, just couple the user
> with your application roles in Application_AuthenticateRequest.
>
> i have a sample which may get you started:
> http://www.leastprivilege.com/PermaL...0-bc8cfbec4c3a
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
> > Hi Dominick
> >
> > Thanks for the response. By Secutiy Object, I mean my own dll that
> > will handle the decision that a particular client that is part of a
> > particular group (defined by us, in this case lets say a data_entry
> > user vs. an administrator user) can or cannot see data on a page. We
> > need to restrict some users to only see their clients and others can
> > see their clients as well as clients that they have what we call a
> > partnership with. I was going down the path of creating my own custom
> > object that would use the IPrincipal interface and each page in our
> > database would have a particular role assiged to it, so that if a user
> > does not match the role he would be re-directed to a page that
> > politely tells him he cannot see this clients data. Make any sense?
> >
> > "Dominick Baier [DevelopMentor]" wrote:
> >
> >> Hello seal,
> >>
> >> What do you mean with Security Object??
> >>
> >> ---------------------------------------
> >> Dominick Baier - DevelopMentor
> >> http://www.leastprivilege.com
> >>> Hi
> >>>
> >>> I work for a company that has user and user roles in the database
> >>> and a very, very complicated long list of rules on how to let a
> >>> person see the data from a page or control. My question is I want to
> >>> re-write the security object and I am looking for suggestions as to
> >>> what the best way to do this would be.
> >>>
> >>> Any suggestions?
> >>>

>
>
>
>

 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Custom object with a System.Web.Security.MembershipUserCollection property - "implement a default accessor" error justin.drerup@gmail.com ASP .Net Web Services 0 05-20-2006 08:38 AM
Custom control within repeater with custom object binding - .net 1 =?Utf-8?B?SmF5YnVmZmV0?= ASP .Net 9 02-21-2006 03:38 AM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
IT-Security, Security, e-security COMSOLIT Messmer Computer Support 0 09-05-2003 08:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57