mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
179520a211
This allows plugins to create custom dbcontexts, which would be namespaced in the scheme with a prefix. Migrations are supported too and the table would be prefixed too
16 lines
501 B
C#
16 lines
501 B
C#
using BTCPayServer.Abstractions.Constants;
|
|
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;
|
|
}
|
|
}
|
|
}
|