mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-30 19:34:30 +01:00
App: Authentication updates (#6536)
- Updates API key extraction to also accept "Bearer" auth header. This is necessary for non-cookie based SignalR connections. - Adds authentication related models to the client lib - Succeeds and replaces #6484.
This commit is contained in:
7
BTCPayServer.Client/App/Models/AuthenticationResult.cs
Normal file
7
BTCPayServer.Client/App/Models/AuthenticationResult.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
#nullable enable
|
||||
namespace BTCPayServer.Client.App.Models;
|
||||
|
||||
public class AuthenticationResponse
|
||||
{
|
||||
public string? AccessToken { get; set; }
|
||||
}
|
||||
10
BTCPayServer.Client/App/Models/LoginRequest.cs
Normal file
10
BTCPayServer.Client/App/Models/LoginRequest.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
#nullable enable
|
||||
namespace BTCPayServer.Client.App.Models;
|
||||
|
||||
public class LoginRequest
|
||||
{
|
||||
public string? Email { get; set; }
|
||||
public string? Password { get; set; }
|
||||
public string? TwoFactorCode { get; set; }
|
||||
public string? TwoFactorRecoveryCode { get; set; }
|
||||
}
|
||||
8
BTCPayServer.Client/App/Models/ResetPasswordRequest.cs
Normal file
8
BTCPayServer.Client/App/Models/ResetPasswordRequest.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace BTCPayServer.Client.App.Models;
|
||||
|
||||
public class ResetPasswordRequest
|
||||
{
|
||||
public string Email { get; set; }
|
||||
public string ResetCode { get; set; }
|
||||
public string NewPassword { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user