asp.net-mvcauthenticationloggingelmahelmah.mvc

Elmah.Mvc 2.0 custom Authentication


I'm trying to implement custom authentication for Elmah.Mvc 2.0. I know there are two keys in my web.config (elmah.mvc.allowedRoles and elmah.mvc.allowedUsers) but it won't be enough for me.

I have a custom Forms Authentication method which adds some random salt in the cookie, so I don't have a clear username to put for elmah.mvc.allowedUsers value. Also, I have no roles implemented.

Is there any way to override ElmahController or some Elmah authentication classes/methods?

Thanks!


Solution

  • Where is ongoing discussion on that - https://github.com/alexanderbeletsky/elmah-mvc/pull/24.

    For now, it's not directly possible, but in ticket you could see several solutions, including custom filters. I'm still not really sure about some special tweeks need to be done in Elmah.MVC package itself.