473,473 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Customizable Role-based Authorization

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.

Nov 19 '05 #1
5 1335
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" <sn****@yahoo.co.in> wrote in message
news:11**********************@z14g2000cwz.googlegr 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.

Nov 19 '05 #2
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.

Nov 19 '05 #3
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" <sn****@yahoo.co.in> wrote in message
news:11*********************@o13g2000cwo.googlegro 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.

Nov 19 '05 #4
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?

Nov 19 '05 #5
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" <sn****@yahoo.co.in> wrote in message
news:11*********************@l41g2000cwc.googlegro 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?

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Daimler | last post by:
please help!!!!!! i tried searching for a way to customize an array name, eg. array1 array2 array3 using the syntax "array" & "countitem" into a customizable array name where countitem...
1
by: tracy | last post by:
hi, just wonder, can we copy a role then add some new priviledges to the new role. hm.. i means, example; now i have a role named role_a. Then I copy role_a to create role_b. After I created...
2
by: Ted | last post by:
How do I grant all privileges for a schema that has a large number of existing tables, procedures, functions, etc to a newly created role, without having to issue a grant statement for each object...
1
by: Andrea Bampi | last post by:
I'm just trying to do my first experiments with js, but I need some good examples to start with.. I need to design a dynamic form with two dropdown menus picking their select values from a db: my...
1
by: IWP506 | last post by:
Hello I want to create a customizable home page. I'd like to be able to put together a template in frontpage, then put it on the web. I want to put in HTML comments like <!-- home page element...
0
by: neena | last post by:
anyone please tell me ... how to enter events like in the calendar control of C#.net. ie; when i click a date, a textbox will appear for entering the event & when i click the button,that event...
4
by: cybertoast | last post by:
i seem to have some misunderstanding about how roles work in sql server 2005. i see that i can add a role to a database (dbname->->properties->permissions->. THis allows me to add either users or...
0
by: fedrok | last post by:
Hi to you all. I'm developing a Windows form program in VB.NET and Visual Studio 2005. Vs2005 contains a model for splash screen. I added one in my solution and all works good. Buyt now: ...
0
by: Peter Herath | last post by:
I want to create a custormizable report . For an example, there's a form with four combo boxes and two of them having database tables columns/field names as values in the combo box(one for select row...
2
by: Anthony Smith | last post by:
I have a user object that is set when a user logs in. There are also permissions that I get about the user from a web service. Currently I take the results from those web services and store them as...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.