Table of Contents

Method CreateUnauthorizedResponse

Namespace
Sisk.BasicAuth
Assembly
Sisk.BasicAuth.dll

CreateUnauthorizedResponse(string)

Creates an empty HTTP response with the WWW-Authenticate header and an custom realm message.

public HttpResponse CreateUnauthorizedResponse(string realm)

Parameters

realm string

Defines the realm message to send back to the client.

Returns

HttpResponse

CreateUnauthorizedResponse()

Creates an empty HTTP response with the WWW-Authenticate header and with the realm message defined in this class instance.

public HttpResponse CreateUnauthorizedResponse()

Returns

HttpResponse