C# Class WebApi2.AuthenticateAttribute

Authenticate Attribute with HMAC
Inheritance: System.Web.Http.Filters.ActionFilterAttribute
Datei anzeigen Open project: megadotnet/ironframework

Public Methods

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

The on action executing.

Private Methods

Method Description
AddNameValuesToCollection ( string>.List parameterCollection, NameValueCollection nameValueCollection ) : void

The add name values to collection.

AddToMemoryCache ( string signature ) : void

The add to memory cache.

BuildBaseString ( System.Web.Http.Controllers.HttpActionContext actionContext ) : string

The build base string.

BuildParameterCollection ( System.Web.Http.Controllers.HttpActionContext actionContext ) : string>>.List

The build parameter collection.

BuildParameterMessage ( System.Web.Http.Controllers.HttpActionContext actionContext ) : string

The build parameter message.

ConvertObjectAsKeyValuePairList ( object obj, string>.IList querystrings ) : string>>.List

Converts the object as key value pair list.

GetHashedPassword ( string username ) : string

The get hashed password.

GetHttpRequestHeader ( HttpHeaders headers, string headerName ) : string

The get http request header.

IsAuthenticated ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool

The is authenticated.

IsAuthenticated ( string hashedPassword, string message, string signature ) : bool

The is authenticated.

IsDateValidated ( string timestampString ) : bool

The is date validated

IsSignatureValidated ( string signature ) : bool

The is signature validated.

Method Details

OnActionExecuting() public method

The on action executing.
public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void
actionContext System.Web.Http.Controllers.HttpActionContext /// The action context. ///
return void