Skip to main content

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

NameTypeDescription
AddPreFetchTunerWithHttpContext(this EasyQueryOptions options, Action<EasyQueryManager, HttpContext> tunningAction)voidAdds 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)voidRegisters the defaul authentication provider - a function (resolver) that returns and instance of Korzh.EasyQuery.Services.DefaultEqAuthProvider class.
UseDefaultAuthProvider(this EasyQueryOptions options, Action<DefaultEqAuthProvider> tuner)voidRegisters the defaul authentication provider - a function (resolver) that returns and instance of Korzh.EasyQuery.Services.DefaultEqAuthProvider class.