/// <summary> /// Adds the middleware component to authorize the user on the request to every secured field prior /// to resolving any fields on the chosen operation. /// </summary> private QueryExecutionPipelineHelper <TSchema> AddQueryOperationAuthorizationMiddleware() { _pipelineBuilder.AddMiddleware <AuthorizeQueryOperationMiddleware <TSchema> >(); return(this); }
/// <summary> /// Adds the middleware component to invoke/resolve each directive on a field request. /// </summary> /// <returns>FieldExecutionPipelineHelper<TSchema>.</returns> public FieldExecutionPipelineHelper <TSchema> AddResolveDirectivesMiddleware() { _pipelineBuilder.AddMiddleware <InvokeDirectiveResolversMiddleware>(); return(this); }
/// <summary> /// Adds the middleware component that performs the primary field authorization. /// </summary> /// <returns>FieldAuthorizationPipelineHelper<TSchema>.</returns> public FieldAuthorizationPipelineHelper <TSchema> AddFieldAuthorizationMiddleware() { _pipelineBuilder.AddMiddleware <FieldAuthorizationCheckMiddleware>(); return(this); }