You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
767 B
C#
30 lines
767 B
C#
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<BasicAuthenticationOptions>
|
|
{
|
|
public ValidateCredentialsContext(HttpContext context, AuthenticationScheme scheme, BasicAuthenticationOptions options)
|
|
: base(context, scheme, options)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 用户名
|
|
/// </summary>
|
|
public string? Username { get; set; }
|
|
|
|
/// <summary>
|
|
/// 密码
|
|
/// </summary>
|
|
public string? Password { get; set; }
|
|
}
|
|
}
|