EasyQueryOptionsExtentionsAuth class

Contains several extension methods which simplifies the registration of the default authorithation provider for EasyQuery actions.

public static class Korzh.EasyQuery.Services.EasyQueryOptionsExtentionsAuth

Package: Korzh.EasyQuery.AspNetCore (targets: net5.0, netcoreapp3.1, netstandard2.0)

Assembly: Korzh.EasyQuery.AspNetCore.dll

Static Methods

Name Type Description
AddPreFetchTunerWithHttpContext(this EasyQueryOptions options, Action<EasyQueryManager, HttpContext> tunningAction) void Adds an action which allows to tune EasyQueryManager (e.g. add some conditions to the current query) before query execution. This action can take into the account the current HTTP context (request parameters, current user) passed in the parameter.
UseDefaultAuthProvider(this EasyQueryOptions options) void Registers the defaul authentication provider - a function (resolver) that returns and instance of Korzh.EasyQuery.Services.DefaultEqAuthProvider class.
UseDefaultAuthProvider(this EasyQueryOptions options, Action<DefaultEqAuthProvider> tuner) void Registers the defaul authentication provider - a function (resolver) that returns and instance of Korzh.EasyQuery.Services.DefaultEqAuthProvider class.