Sisk

Class

BasicAuthenticateRequestHandler

Namespace
Sisk.BasicAuth
Assembly
Sisk.BasicAuth.dll

Gets a IRequestHandler that serves as an authenticator for the Basic Authentication scheme, which can validate a user id and password.

C#
public class BasicAuthenticateRequestHandler : IRequestHandler

Inheritance #

object ← BasicAuthenticateRequestHandler

Implements #

IRequestHandler

Inherited Members #

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
BasicAuthenticateRequestHandler()

Properties #

NameDescription
ExecutionModeGets or sets when this RequestHandler should run.
RealmGets or sets a message to show the client which protection scope it needs to authenticate to.

Methods #

NameDescription
CreateUnauthorizedResponse(string)Creates an empty HTTP response with the WWW-Authenticate header and an custom realm message.
CreateUnauthorizedResponse()Creates an empty HTTP response with the WWW-Authenticate header and with the realm message defined in this class instance.
Execute(HttpRequest, HttpContext)This method is called by the Router before executing a request when the Route instantiates an object that implements this interface. If it returns a HttpResponse object, the route callback is not called and all execution of the route is stopped. If it returns “null”, the execution is continued.
OnValidating(BasicAuthenticationCredentials, HttpContext)Indicates the method that is called to validate a request with client credentials. When returning an HttpResponse, it will be sent immediately to the client and the rest of the stack will not be executed. If the return is null, it is interpretable that the authentication was successful and the execution should continue.

Type to search the documentation and the API reference.