btcpayserver/BTCPayServer/Security/AuthenticationExtensions.cs

16 lines
473 B
C#
Raw Normal View History

2019-06-09 01:36:54 +09:00
using System;
using BTCPayServer.Security.Bitpay;
using Microsoft.AspNetCore.Authentication;
namespace BTCPayServer.Security
{
public static class AuthenticationExtensions
{
public static AuthenticationBuilder AddBitpayAuthentication(this AuthenticationBuilder builder)
{
2019-10-12 20:35:30 +09:00
builder.AddScheme<BitpayAuthenticationOptions, BitpayAuthenticationHandler>(AuthenticationSchemes.Bitpay, o => { });
2019-06-09 01:36:54 +09:00
return builder;
}
}
}