Table of Contents

Method OnValidating

Namespace
Sisk.BasicAuth
Assembly
Sisk.BasicAuth.dll

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.

public virtual HttpResponse? OnValidating(BasicAuthenticationCredentials credentials, HttpContext context)

Parameters

credentials BasicAuthenticationCredentials

Represents the credentials sent by the client, already decoded and ready for use.

context HttpContext

Represents the Http context.

Returns

HttpResponse