Adding debug logging to AAD authentication failures

This commit is contained in:
Lombiq
2018-09-07 22:30:16 +02:00
committed by Zoltán Lehóczky
parent ee38f614cc
commit bcdfb4a43b

View File

@@ -88,7 +88,7 @@ namespace Orchard.OpenId.OwinMiddlewares {
AuthenticationFailed = context => {
context.HandleResponse();
context.Response.Redirect(Constants.General.AuthenticationErrorUrl);
Logger.Debug(context.Exception, "AAD authentication failed.");
return Task.FromResult(0);
}
}