2020-11-17 13:46:23 +01:00
|
|
|
using BTCPayServer.Abstractions.Constants;
|
2019-06-09 01:36:54 +09:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2020-06-28 17:55:27 +09:00
|
|
|
}
|