Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Customizable Role-based Authorization

Reply
Thread Tools

Customizable Role-based Authorization

 
 
Snig
Guest
Posts: n/a
 
      04-25-2005
Hi all

I need to implement the following scenario in my application:
1. Roles are stored in SQL-SERVER.
2. Access Rights will be given to the roles by the administrator by the
application itself.
3. Access Rights will be given on functionality basis. e.g. some role
can Add a new record, some can search for some particular records, some
can update it etc. We have these functionality implemented by standard
buttons in pages. Let's call these as "Access Areas".
4. There are huge number of such Access Areas to be implemented in
various pages. Though they are finite (means administrator cannot
create/delete these access areas), but he can change the permission
over an Aceess Area to a role.

Solutions I thought:
1. I can, of course, write few lines in individual pages, read the
settings from database and apply. But I want to do this centrally, like
in application_authorizerequest event of global.asax file.
2. I can create custom/user controls for each of the Access Areas and
implement security model onto that. But, we have developed the
application too far before the customer has made this request.

In this scenario, can somebody help me about how should I design the
security model?

Thanks
Snig.

 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      04-25-2005
I successfully developed an app using role-based forms authentication by
using the techniques outlined in these articles:

http://support.microsoft.com/default...b;en-us;311495
http://www.4guysfromrolla.com/webtech/121901-1.2.shtml

Here is another article you may find useful as well:
http://www.eggheadcafe.com/articles/20020906.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Snig" <> wrote in message
news: oups.com...
> Hi all
>
> I need to implement the following scenario in my application:
> 1. Roles are stored in SQL-SERVER.
> 2. Access Rights will be given to the roles by the administrator by the
> application itself.
> 3. Access Rights will be given on functionality basis. e.g. some role
> can Add a new record, some can search for some particular records, some
> can update it etc. We have these functionality implemented by standard
> buttons in pages. Let's call these as "Access Areas".
> 4. There are huge number of such Access Areas to be implemented in
> various pages. Though they are finite (means administrator cannot
> create/delete these access areas), but he can change the permission
> over an Aceess Area to a role.
>
> Solutions I thought:
> 1. I can, of course, write few lines in individual pages, read the
> settings from database and apply. But I want to do this centrally, like
> in application_authorizerequest event of global.asax file.
> 2. I can create custom/user controls for each of the Access Areas and
> implement security model onto that. But, we have developed the
> application too far before the customer has made this request.
>
> In this scenario, can somebody help me about how should I design the
> security model?
>
> Thanks
> Snig.
>



 
Reply With Quote
 
 
 
 
Snig
Guest
Posts: n/a
 
      04-25-2005
Thanks Steve.

Can the mechanism referred by the links provided by you handle the
enabling/disabling of controls of a particular page?
Please note that the authorization should be applied on control/field
level instead of the whole page ...

Snig.

 
Reply With Quote
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      04-25-2005
With a drip of code here and there you can do anything you want with the
controls in the page.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Snig" <> wrote in message
news: ups.com...
> Thanks Steve.
>
> Can the mechanism referred by the links provided by you handle the
> enabling/disabling of controls of a particular page?
> Please note that the authorization should be applied on control/field
> level instead of the whole page ...
>
> Snig.
>



 
Reply With Quote
 
Snig
Guest
Posts: n/a
 
      04-25-2005
Well, thats what I was trying to assert.
The security model implementation should not be scattered here and
there!

Can I control the whole security framework in global.asax file itself
by implementing custom HTTPModule?

 
Reply With Quote
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      04-25-2005
This sounds possible, but not very easy in ASP.NET 1.x.

The new capabilities in ASP.NET 2.0 will provide enhanced capabilities in
this area.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Snig" <> wrote in message
news: ups.com...
> Well, thats what I was trying to assert.
> The security model implementation should not be scattered here and
> there!
>
> Can I control the whole security framework in global.asax file itself
> by implementing custom HTTPModule?
>



 
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
how to create customizable frames adi222 Java 2 09-06-2006 02:31 AM
URL Authorization does not override File Authorization? SeanRW ASP .Net Security 1 05-25-2006 06:18 AM
A customizable Calendar. ¯`·.¸.·´¯ AgoGuz ¯`·.¸.·´¯ HTML 1 11-24-2005 11:50 AM
Customizable Role-based Authorization Snig ASP .Net Security 4 04-27-2005 07:34 AM
customizable assembler Stefan Oedenkoven VHDL 2 11-22-2004 01:36 PM



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