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
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. |