mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
Adding debug logging to AAD authentication failures
This commit is contained in:
@@ -88,7 +88,7 @@ namespace Orchard.OpenId.OwinMiddlewares {
|
|||||||
AuthenticationFailed = context => {
|
AuthenticationFailed = context => {
|
||||||
context.HandleResponse();
|
context.HandleResponse();
|
||||||
context.Response.Redirect(Constants.General.AuthenticationErrorUrl);
|
context.Response.Redirect(Constants.General.AuthenticationErrorUrl);
|
||||||
|
Logger.Debug(context.Exception, "AAD authentication failed.");
|
||||||
return Task.FromResult(0);
|
return Task.FromResult(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user