C# 클래스 MonkeyWrench.WebServices.Authentication

파일 보기 프로젝트 열기: rolfbjarne/monkeywrench

공개 메소드들

메소드 설명
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

메소드 상세

Authenticate() 공개 정적인 메소드

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
리턴 void

VerifyUserInRole() 공개 정적인 메소드

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
리턴 void