Method OnValidating
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
BasicAuthenticationCredentialsRepresents the credentials sent by the client, already decoded and ready for use.
context
HttpContextRepresents the Http context.