public virtual void Process(UnicornControlPanelRequestPipelineArgs args) { bool handled = HandlesVerb(args); if (!handled) return; args.Response = CreateResponse(args); if(_abortPipelineIfHandled) args.AbortPipeline(); }
public virtual void Process(UnicornControlPanelRequestPipelineArgs args) { bool handled = HandlesVerb(args); if (!handled) { if (_verbHandled.Equals(args.Verb ?? string.Empty, StringComparison.OrdinalIgnoreCase) && !args.SecurityState.IsAllowed && args.SecurityState.IsAutomatedTool) { args.Response = new PlainTextResponse("Unable to authorize request, ensure that your shared secrets match.", System.Net.HttpStatusCode.Forbidden); args.AbortPipeline(); } return; } args.Response = CreateResponse(args); if (_abortPipelineIfHandled) { args.AbortPipeline(); } }
public virtual void Process(UnicornControlPanelRequestPipelineArgs args) { bool handled = HandlesVerb(args); if (!handled) { return; } args.Response = CreateResponse(args); if (_abortPipelineIfHandled) { args.AbortPipeline(); } }