Use proper custom authentication handler for bitpay

This commit is contained in:
nicolas.dorier
2018-06-04 12:00:03 +09:00
parent f72705935a
commit 01cf579530
5 changed files with 245 additions and 198 deletions

View File

@@ -20,7 +20,7 @@ namespace BTCPayServer.Controllers
{
[EnableCors("BitpayAPI")]
[BitpayAPIConstraint]
[Authorize(Policies.CanUseStore.Key)]
[Authorize(Policies.CanUseStore.Key, AuthenticationSchemes = Policies.BitpayAuthentication)]
public class InvoiceControllerAPI : Controller
{
private InvoiceController _InvoiceController;