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
파일 보기 프로젝트 열기: vlko/vlko

공개 메소드들

메소드 설명
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