Class BasicAuthenticateRequestHandler
Gets a IRequestHandler that serves as an authenticator for the Basic Authentication scheme, which can validate a user id and password.
public class BasicAuthenticateRequestHandler : IRequestHandler
- Inheritance
-
BasicAuthenticateRequestHandler
- Implements
- Inherited Members
Constructors
Properties
- ExecutionMode
Gets or sets when this RequestHandler should run.
- Realm
Gets or sets a message to show the client which protection scope it needs to authenticate to.
Methods
- CreateUnauthorizedResponse()
Creates an empty HTTP response with the WWW-Authenticate header and with the realm message defined in this class instance.
- CreateUnauthorizedResponse(string)
Creates an empty HTTP response with the WWW-Authenticate header and an custom realm message.
- 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.