btcpayserver/BTCPayServer/Security/AuthenticationExtensions.cs

16 lines
474 B
C#
Raw Normal View History

2019-06-08 18:36:54 +02: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)
{
builder.AddScheme<BitpayAuthenticationOptions, BitpayAuthenticationHandler>(Policies.BitpayAuthentication, o => { });
return builder;
}
}
}