Secure elmah with ASp.NET security but only to some users -
Hello, I am developing an ASP.NET application and I want to add Elmah. The problem I have is that users enter the site and I have found the only way to protect Elmah, to authenticate users, not specific users.
I am using ASP.NET MVC2 and Net4.
Any thoughts?
You want to restrict elmah.axd (assuming you are using the handler) Not all certified users only for a specific user role.
& lt ;! - The unauthorized users will have LMAX- & gt; Decline to see. & Lt; Location Path = "admin / elmah.axd" & gt; & Lt; System.web & gt; & Lt; Authority & gt; & Lt; Allow roles = "admin" /> & Lt; Deny users = "*" /> & Lt; / Authorization & gt; & Lt; /system.web> & Lt; / Location & gt;
Phil Hack is good on the subject.
Comments
Post a Comment