zhengyuxuan
2025-04-01 8f5a78cae00812ec9eef16936a7d2b53a90892f0
1
2
3
4
5
6
7
8
9
10
11
12
13
using LifePayment.Domain.Shared;
using Microsoft.AspNetCore.Authentication;
 
namespace LifePayment.Domain
{
    public static class WxPayExtensions
    {
        public static AuthenticationBuilder AddWxPay(this AuthenticationBuilder builder)
        {
            return builder.AddScheme<AuthenticationSchemeOptions, WxPayAuthenticationHandler>(WxPaySignAuthenticationDefaults.AuthenticationScheme, "WxPaySignCheck", op => { });
        }
    }
}