Authenticate Method

HttpServer.dll

An authentication response have been received from the web browser. Check if it's correct

Namespace:  HttpServer.Authentication
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public override Object Authenticate(
	string authenticationHeader,
	string realm,
	string httpVerb,
	params Object[] options
)
Visual Basic (Declaration)
Public Overrides Function Authenticate ( _
	authenticationHeader As String, _
	realm As String, _
	httpVerb As String, _
	ParamArray options As Object() _
) As Object
Visual C++
public:
virtual Object^ Authenticate(
	String^ authenticationHeader, 
	String^ realm, 
	String^ httpVerb, 
	... array<Object^>^ options
) override

Parameters

authenticationHeader
Type: System..::.String
Contents from the Authorization header
realm
Type: System..::.String
Realm that should be authenticated
httpVerb
Type: System..::.String
GET/POST/PUT/DELETE etc.
options
Type: array< System..::.Object >[]()[]
First option: true if username/password is correct but not cnonce

Return Value

Authentication object that is stored for the request. A user class or something like that.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionif authenticationHeader is invalid
System..::.ArgumentNullExceptionIf any of the paramters is empty or null.

See Also