开发者

ASP.NET Event OnAuthenticationFailed?

开发者 https://www.devze.com 2023-02-18 21:29 出处:网络
开发者_StackOverflowIs there an event that gets fired right after ASP.NET authentication has failed to identify the user? I need to trigger an alarm every time that happens. Don\'t offer to implement
开发者_StackOverflow

Is there an event that gets fired right after ASP.NET authentication has failed to identify the user? I need to trigger an alarm every time that happens. Don't offer to implement custom membership provider nor to do it from the Login form's controller. I'm looking for native ASP.NET pipeline event. HttpApplication has two events: one for before Authentication and one after, but nothing for failure.


As far as I remeber, yes:
Have a close look at the logging capabilites of the HealthMonitoring section. It is not only possible to log errors, but also events such as successfull logins or failed login.

Have a look at http://www.asp.net/hosting/tutorials/logging-error-details-with-asp-net-health-monitoring-cs

I guess eventName="Failure Audits" is the way to go

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号