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

Static Methods

Type Name Description
void AddPreExecuteTunningWithHttpContext(this EasyQueryOptions options, Action<EasyQueryManager, HttpContext> tunningAction) 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.
void UseDefaultAuthProvider(this EasyQueryOptions options) Registers the defaul authentication provider - a function (resolver) that returns and instance of Korzh.EasyQuery.Services.DefaultEqAuthProvider class.
void UseDefaultAuthProvider(this EasyQueryOptions options, Action<DefaultEqAuthProvider> tuner) Registers the defaul authentication provider - a function (resolver) that returns and instance of Korzh.EasyQuery.Services.DefaultEqAuthProvider class.