mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-29 20:04:18 +01:00
18 lines
478 B
C#
18 lines
478 B
C#
using BTCPayServer.Security.Basic;
|
|
using Microsoft.AspNetCore.Authentication;
|
|
|
|
namespace BTCPayServer.Security.APIKeys
|
|
{
|
|
public static class BasicExtensions
|
|
{
|
|
|
|
public static AuthenticationBuilder AddBasicAuthentication(this AuthenticationBuilder builder)
|
|
{
|
|
builder.AddScheme<BasicAuthenticationOptions, BasicAuthenticationHandler>(AuthenticationSchemes.Basic,
|
|
o => { });
|
|
return builder;
|
|
}
|
|
|
|
}
|
|
}
|