alexbeletsky / elmah-mvc

Painless integration of ELMAH into ASP.NET MVC application
http://nuget.org/packages/Elmah.MVC
Apache License 2.0
266 stars 61 forks source link

elmah.MVC, remote Access, Too many redirects after enabling requiresAuthentication #100

Closed mansoor-omrani closed 6 years ago

mansoor-omrani commented 6 years ago

Hi

I enabled requiresAuthentication and used allowedRoles with 'admin' value (enabling AuthCaseSensitive).

When accessing /elmah from remote, it correctly redirects me to /Account/Login.

But after I log in and it redirects me to /elmah, it seems elmah cannot distinguish that I'm logged in and redirects me back to /Account/Login which results in too many redirects.

Did I perform anything wrong?

mansoor-omrani commented 6 years ago

I resolved the issue.

I had also enabled 'allowedUsers' option with '?' value. That was the problem.