| RE: [aus-dotnet] Permission coding |
- From: Corneliu I. Tusnea
- Subject: RE: [aus-dotnet] Permission coding
- Date: Thu, 10 Jan 2008 11:06:11 -0800
- Prev by Date: RE: [aus-dotnet] Where to look for the .NET jobs?
- Next by Date: Re: [aus-dotnet] How to Draw Icons?
- Previous by thread: RE: [aus-dotnet] Permission coding
- Next by thread: RE: [aus-dotnet] Permission coding
- Index(es):
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
Dylan, You might have seen that in my presentation at CodeCamp or
TechEd on security where I was talking also about a nicer approach: [PrincipalPermission(SecurityAction.Demand,
Role="Manager")] This is a nice way of defining roles required however the
concept is not that useful in smart clients applications as you can use a tool like
Hawkeye (http://www.acorns.com.au/projects/hawkeye)
to change the reported roles on the fly and all your tests (these ones or the
ones with IsInRole) become useless. For a smart client it’s very important to realize that this type
of role checks should only be used for usability purposes and not for security. You should be aware that any check that you do it’s easy to
modify either at runtime (see Hawkeye) or by modifying the assemblies
(decompilation/recompilation). Regards, Corneliu
I. Tusnea M: +61 410 835 593 | C: corneliu.tusnea@xxxxxxxxxxx PPlease consider your environmental
responsibility before printing this e-mail From: peter@xxxxxxxxxxx
[mailto:peter@xxxxxxxxxxx] On Behalf Of Tusler, Dylan I remember doing some really exciting stuff around this topic on
the advanced .NET course at Readify. Unfortunately I don't have my notes at hand, but I'm sure somebody
out there will know what I'm talking about... Dylan. From:
peter@xxxxxxxxxxx [mailto:peter@xxxxxxxxxxx] On Behalf Of Greg Keogh Warning:
Email may contain offensive content. You are advised not to view email or
attachments unless sent from a known and trusted source. Folks, I
have previously fallen into the coding trap where your project becomes littered
with permission checking code like this: if (IsInRole("Customer")) { panelThing.Visible = true; labelOther.Text = "Some other
message". } As
an app grows, this sort of tedious code can get out of control, and I want to
find a better way of doing this. Has
anyone fiddled in this sort of coding area? I’m going to run some webs searches
on ‘injection security declarative’ keywords to see what turns up. Cheers, Greg Get
the latest Council news delivered to your desktop. Subscribe
to eFocus, Maroochy Council's free online newsletter: http://tinyurl.com/3cb9tz ====================================================== Maroochy
Shire Council is a government organisation and is subject to Freedom of
Information legislation. You must assume that any material sent to Maroochy Shire
Council may be monitored and may be accessible by persons other than the
intended recipient. |
(Click here for more information on the aus-dotnet mailling list)
