C# 클래스 WebApiDoodle.Web.Filters.ApiKeyAuthAttribute

QueryString Api Key Authorization filter for ASP.NET Web API.
상속: System.Web.Http.Filters.AuthorizationFilterAttribute
파일 보기 프로젝트 열기: tugberkugurlu/WebAPIDoodle

공개 메소드들

메소드 설명
ApiKeyAuthAttribute ( string apiKeyQueryParameter, Type apiKeyAuthorizerType ) : System

OnAuthorization ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void

보호된 메소드들

메소드 설명
HandleUnauthorizedRequest ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void

Handles the operation on an unauthorized situation

비공개 메소드들

메소드 설명
AuthorizeCore ( HttpRequestMessage request ) : bool
IsAuthorized ( string apiKey ) : bool
IsTypeOfIApiKeyAuthorizer ( Type type ) : bool
SkipAuthorization ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool
SplitString ( string original ) : string[]

메소드 상세

ApiKeyAuthAttribute() 공개 메소드

public ApiKeyAuthAttribute ( string apiKeyQueryParameter, Type apiKeyAuthorizerType ) : System
apiKeyQueryParameter string The name of the query string parameter whose value needs to be compared against.
apiKeyAuthorizerType System.Type Type of Api Key Authorizer which implements TugberkUg.Web.Http.IApiKeyAuthorizer
리턴 System

HandleUnauthorizedRequest() 보호된 메소드

Handles the operation on an unauthorized situation
protected HandleUnauthorizedRequest ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void
actionContext System.Web.Http.Controllers.HttpActionContext
리턴 void

OnAuthorization() 공개 메소드

public OnAuthorization ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void
actionContext System.Web.Http.Controllers.HttpActionContext
리턴 void