You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -77,6 +77,21 @@ namespace System.Web.Security
|
||||
|
||||
return config == null ? true : config.IsValidUser (user, verb);
|
||||
}
|
||||
|
||||
internal static void ReportUrlAuthorizationFailure(HttpContext context, object webEventSource) {
|
||||
// Deny access
|
||||
context.Response.StatusCode = 401;
|
||||
context.Response.Write (new HttpException(401, "Unauthorized").GetHtmlErrorMessage ());
|
||||
|
||||
#if false // Sys.Web.Mng not implemented on mono.
|
||||
if (context.User != null && context.User.Identity.IsAuthenticated) {
|
||||
// We don't raise failure audit event for anonymous user
|
||||
WebBaseEvent.RaiseSystemEvent(webEventSource, WebEventCodes.AuditUrlAuthorizationFailure);
|
||||
}
|
||||
#endif
|
||||
context.ApplicationInstance.CompleteRequest();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user