C# Class Hero.Attributes.AbilityWebApiAuthorizationAttribute

Inheritance: System.Web.Http.AuthorizeAttribute
Exibir arquivo Open project: Skookum/Hero

Public Methods

Method Description
AuthorizeRequest ( HttpRequestMessage request ) : bool
OnAuthorization ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void

Protected Methods

Method Description
HandleUnauthorizedRequest ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void

Private Methods

Method Description
AuthorizationDisabled ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool
CreateUnauthorizedResponse ( HttpRequestMessage request ) : HttpResponseMessage

Method Details

AuthorizeRequest() public method

public AuthorizeRequest ( HttpRequestMessage request ) : bool
request System.Net.Http.HttpRequestMessage
return bool

HandleUnauthorizedRequest() protected method

protected HandleUnauthorizedRequest ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void
actionContext System.Web.Http.Controllers.HttpActionContext
return void

OnAuthorization() public method

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