C# Class WCFREST.WebAppAPI.Login

Before making calls to this API, a call to this handler is needed to get a cookie.
Inheritance: IHttpHandler
ファイルを表示 Open project: damianof/WCF-REST-API-With-Forms-Authentication

Public Methods

Method Description
ProcessRequest ( HttpContext context ) : void

Process the incoming Login request and return a cookie if successful. Also return a json body with a Success flag.

Protected Methods

Method Description
AuthenticateAndGetCookie ( LoginInfo loginInfo, System.Web.HttpCookie &cookie ) : bool

Method Details

AuthenticateAndGetCookie() protected method

protected AuthenticateAndGetCookie ( LoginInfo loginInfo, System.Web.HttpCookie &cookie ) : bool
loginInfo LoginInfo
cookie System.Web.HttpCookie
return bool

ProcessRequest() public method

Process the incoming Login request and return a cookie if successful. Also return a json body with a Success flag.
public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext
return void