protected virtual void AuthenticateRequest(HttpContextBase context, int portalId) { if (!context.Request.IsAuthenticated) { BasicAuthenticator.Instance.TryToAuthenticate(context, portalId); } if (!context.Request.IsAuthenticated) { DigestAuthenticator.Instance.TryToAuthenticate(context, portalId); } MembershipModule.AuthenticateRequest(context, true /*allowUnknownExtension*/); }
protected override HttpRequestMessage ProcessRequest(HttpRequestMessage request, CancellationToken cancellationToken) { MembershipModule.AuthenticateRequest(request.GetHttpContext(), allowUnknownExtensinons: true); return(request); }
void IHttpHandler.ProcessRequest(HttpContext httpContext) { MembershipModule.AuthenticateRequest(this.RequestContext.HttpContext, allowUnknownExtensions: true); this.ProcessRequest(httpContext); }