2020-11-17 13:46:23 +01:00
|
|
|
using BTCPayServer.Abstractions.Constants;
|
2019-06-08 18:36:54 +02: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 13:35:30 +02:00
|
|
|
builder.AddScheme<BitpayAuthenticationOptions, BitpayAuthenticationHandler>(AuthenticationSchemes.Bitpay, o => { });
|
2019-06-08 18:36:54 +02:00
|
|
|
return builder;
|
|
|
|
}
|
|
|
|
}
|
2020-06-28 10:55:27 +02:00
|
|
|
}
|