btcpayserver/BTCPayServer/Security/AuthenticationExtensions.cs

15 lines
458 B
C#

using BTCPayServer.Security.Bitpay;
using Microsoft.AspNetCore.Authentication;
namespace BTCPayServer.Security
{
public static class AuthenticationExtensions
{
public static AuthenticationBuilder AddBitpayAuthentication(this AuthenticationBuilder builder)
{
builder.AddScheme<BitpayAuthenticationOptions, BitpayAuthenticationHandler>(AuthenticationSchemes.Bitpay, o => { });
return builder;
}
}
}