using System.Net; using System.Security.Claims; using System.Threading.Tasks; namespace Microsoft.AspNetCore.Authentication { /// /// Interface representing the validation of a basic authentication. /// public interface IBasicAuthenticationValidator { /// /// Validates a username and password for Basic Authentication. /// /// A username. /// A password. /// The remote client's IP address. /// The validated user principal or null. Task ValidateAsync(string username, string password, IPAddress remoteAddress); } }