mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-28 10:24:22 +01:00
add basic auth for greenfield
This commit is contained in:
17
BTCPayServer/Security/Basic/BasicExtensions.cs
Normal file
17
BTCPayServer/Security/Basic/BasicExtensions.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user