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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -