C# Class Hero.Attributes.TokenWebApiAuthorizationAttribute

Inheritance: System.Web.Http.AuthorizeAttribute
显示文件 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
SplitStrings ( string input ) : string[]

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

SplitStrings() protected static method

protected static SplitStrings ( string input ) : string[]
input string
return string[]