C# Class MonkeyWrench.WebServices.Authentication

Show file Open project: rolfbjarne/monkeywrench

Public Methods

Method Description
Authenticate ( HttpContext Context, DB db, MonkeyWrench.DataClasses.Logic.WebServiceLogin login, WebServiceResponse response, bool @readonly ) : void

Authenticates the request with the provided user/pass. If no user/pass is provided, the method returns a response with no roles. If a wrong user/pass is provided, the method throws an exception.

VerifyUserInRole ( HttpContext Context, DB db, MonkeyWrench.DataClasses.Logic.WebServiceLogin login, string role, bool @readonly ) : void

Method Details

Authenticate() public static method

Authenticates the request with the provided user/pass. If no user/pass is provided, the method returns a response with no roles. If a wrong user/pass is provided, the method throws an exception.
public static Authenticate ( HttpContext Context, DB db, MonkeyWrench.DataClasses.Logic.WebServiceLogin login, WebServiceResponse response, bool @readonly ) : void
Context System.Web.HttpContext
db DB
login MonkeyWrench.DataClasses.Logic.WebServiceLogin
response MonkeyWrench.DataClasses.Logic.WebServiceResponse
@readonly bool
return void

VerifyUserInRole() public static method

public static VerifyUserInRole ( HttpContext Context, DB db, MonkeyWrench.DataClasses.Logic.WebServiceLogin login, string role, bool @readonly ) : void
Context System.Web.HttpContext
db DB
login MonkeyWrench.DataClasses.Logic.WebServiceLogin
role string
@readonly bool
return void