using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Http; namespace AuthStudy.Authentication.Basic.Events { public class ValidateCredentialsContext : ResultContext { public ValidateCredentialsContext(HttpContext context, AuthenticationScheme scheme, BasicAuthenticationOptions options) : base(context, scheme, options) { } /// /// 用户名 /// public string? Username { get; set; } /// /// 密码 /// public string? Password { get; set; } } }