diff --git a/ln.http/HttpRouter.cs b/ln.http/HttpRouter.cs index 52f159f..2653244 100644 --- a/ln.http/HttpRouter.cs +++ b/ln.http/HttpRouter.cs @@ -6,7 +6,6 @@ using System.Linq; namespace ln.http { public delegate bool HttpRouterDelegate(HttpContext context); - public delegate bool HttpAuthenticationDelegate(HttpContext httpContext, out HttpPrincipal principal); public delegate bool HttpAuthorizationDelegate(HttpContext httpContext); public delegate void HttpFilterDelegate(HttpContext httpContext); @@ -16,7 +15,6 @@ namespace ln.http public class HttpRouter : IDisposable { public event HttpFilterDelegate HttpFilters; - public event HttpAuthenticationDelegate AuthenticationDelegates; private List[] _mappings = new List[5]; private HttpServer _httpServer; @@ -47,15 +45,6 @@ namespace ln.http public bool Route(HttpContext httpContext) { string residual = ""; - - if (AuthenticationDelegates is not null) - { - foreach (HttpAuthenticationDelegate authenticationDelegate in AuthenticationDelegates.GetInvocationList()) - { - if (httpContext.Authenticate(authenticationDelegate)) - break; - } - } HttpFilters?.Invoke(httpContext);