C# Класс vlko.core.Authentication.ConditionalAuthorizeAttribute

Conditional authorize attribute using app setting to get bool value if to ignore (true) authorization for this controller or action or to perform authorization (false or missing value).
Наследование: System.Web.Mvc.AuthorizeAttribute
Показать файл Открыть проект

Открытые методы

Метод Описание
ConditionalAuthorizeAttribute ( string configKeyIgnoreIdent ) : System

Initializes a new instance of the ConditionalAuthorizeAttribute class.

OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void

Called when a process requests authorization.

Приватные методы

Метод Описание
GetConfigValueFromCache ( string configKeyIgnoreIdent ) : bool

Gets the config value from cache.

LoadConfigValueFromSettings ( string configKeyIgnoreIdent ) : bool

Loads the config value.

Описание методов

ConditionalAuthorizeAttribute() публичный Метод

Initializes a new instance of the ConditionalAuthorizeAttribute class.
public ConditionalAuthorizeAttribute ( string configKeyIgnoreIdent ) : System
configKeyIgnoreIdent string The config key ignore ident in application settings .
Результат System

OnAuthorization() публичный Метод

Called when a process requests authorization.
The parameter is null.
public OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void
filterContext System.Web.Mvc.AuthorizationContext The filter context, which encapsulates information for using .
Результат void