Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > "Pattern" or "best practice" in security checks

Reply
Thread Tools

"Pattern" or "best practice" in security checks

 
 
Anders K. Jacobsen [DK]
Guest
Posts: n/a
 
      12-05-2004
Hi

Im developing an ASP.NET CRUD application where i need to do some
authorization checks on surden actions. Eg. some account have access to
delete in a sudden datagrid and some have not. So I have to be more detailed
that on page level. Rather component level.

This ends up, as I see now, in a alot of checks in the different involed
events. Further I have to adjust the view so that actually can't delete in a
sudden datagrid. This is of course not secure enough so therefore the checks
in the events.

This just sounds like a plain nightmare to maintain and develope. Do you
have a clever suggestion to this issue? I guess it's not the first time this
have come up.

To summerize. I want to avoid this.

private void datagrid_DeleteCommand(object source, DataGridCommandEventArgs
e)
{
if(User.IsInRole("Admin") || User.IsInRole("Developer"))
{
long currentid = Int64.Parse(((Label)e.Item.FindControl("lblid")).T ext);
_Service.DeleteItem(currentid);
Databind_datagrid();
}
}

Thanks in regards
Anders, Denmark


 
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: Data storage - security checks Mike Easter Computer Support 5 03-12-2010 02:57 AM
Changing order Thunderbird checks email fety Firefox 1 04-10-2005 10:33 AM
"Pattern" or "best practice" in security checks Anders K. Jacobsen [DK] ASP .Net 1 12-06-2004 03:46 AM
Link checker that checks fragment identifiers? Spartanicus HTML 2 05-25-2004 09:54 PM
Doctor HTML: How many free single-page checks per day? Jack Crane HTML 4 10-08-2003 09:46 PM



Advertisments