C# Class TSVCEO.CloudPrint.InfoServer.Filters.WindowsAuthorizationFilter

Inheritance: System.Web.Http.Filters.ActionFilterAttribute
Mostra file Open project: klightspeed/CloudPrintProxy

Protected Properties

Property Type Description
SessionUsers string>.Dictionary

Public Methods

Method Description
Authenticate ( Session session, string username, SecureString password ) : bool
Authenticate ( Session session, string username, byte passbytes ) : bool
OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void

Protected Methods

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

Method Details

Authenticate() public static method

public static Authenticate ( Session session, string username, SecureString password ) : bool
session Session
username string
password System.Security.SecureString
return bool

Authenticate() public static method

public static Authenticate ( Session session, string username, byte passbytes ) : bool
session Session
username string
passbytes byte
return bool

HandleUnauthorizedRequest() protected method

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

IsAnonymousAllowed() protected method

protected IsAnonymousAllowed ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool
actionContext System.Web.Http.Controllers.HttpActionContext
return bool

IsAuthorized() protected method

protected IsAuthorized ( System.Web.Http.Controllers.HttpActionContext actionContext ) : bool
actionContext System.Web.Http.Controllers.HttpActionContext
return bool

OnActionExecuting() public method

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

Property Details

SessionUsers protected_oe static_oe property

protected static Dictionary SessionUsers
return string>.Dictionary