Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 517
Nebojsa Veron Avatar asked Aug 20 '13 12:08

Nebojsa Veron


1 Answers

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.

like image 60
Alexander Beletsky Avatar answered Oct 27 '22 08:10

Alexander Beletsky