Пример #1
0
        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*/);
        }
Пример #2
0
        protected override HttpRequestMessage ProcessRequest(HttpRequestMessage request, CancellationToken cancellationToken)
        {
            MembershipModule.AuthenticateRequest(request.GetHttpContext(), allowUnknownExtensinons: true);

            return(request);
        }
Пример #3
0
 void IHttpHandler.ProcessRequest(HttpContext httpContext)
 {
     MembershipModule.AuthenticateRequest(this.RequestContext.HttpContext, allowUnknownExtensions: true);
     this.ProcessRequest(httpContext);
 }