My Project 1.0
Open Source Encrypted Vault Storage
|
Public Member Functions | |
AuthApiClient (HttpClient httpClient, ITokenManager tokenManager) | |
async Task< ApiResponse > | RegisterAsync (RegisterRequestDto request) |
Registers a new user with the provided registration details. | |
async Task< ApiResponse< LoginResponseDto > > | LoginAsync (ignivault.Shared.DTOs.Auth.LoginRequestDto request) |
Logs in a user with the provided credentials. | |
async Task | LogoutAsync () |
Logs out the current user by clearing the stored authentication token. | |
async Task< ApiResponse< LoginResponseDto > > | Login2faAsync (Login2faRequestDto request) |
Logs in a user with 2FA code after initial login indicates 2FA is required. | |
async Task< ApiResponse< Enable2faResponseDto > > | Enable2faAsync () |
Enables two-factor authentication for the current user, returning the setup details. | |
async Task< ApiResponse< Verify2faResponseDto > > | Verify2faAsync (Verify2faRequestDto request) |
Verifies the 2FA code provided by the user to complete the 2FA setup process. | |
async Task< ApiResponse > | ForgotPasswordAsync (ForgotPasswordRequestDto request) |
Forgot password - initiates the password reset process by sending a reset email. | |
async Task< ApiResponse > | ResetPasswordAsync (ResetPasswordRequestDto request) |
Resets the user's password using the token and new password provided. |
Events | |
Func< Task >? | OnLoginSuccess |
Func< Task >? | OnLogout |
Events inherited from ignivault.ApiClient.Auth.IAuthApiClient | |
Func< Task >? | OnLoginSuccess |
Occurs when a user successfully logs in. | |
Func< Task >? | OnLogout |
Occurs when a user logs out. |
Definition at line 71 of file AuthApiClient.cs.
|
inline |
Definition at line 79 of file AuthApiClient.cs.
|
inline |
Enables two-factor authentication for the current user, returning the setup details.
Implements ignivault.ApiClient.Auth.IAuthApiClient.
Definition at line 135 of file AuthApiClient.cs.
|
inline |
Forgot password - initiates the password reset process by sending a reset email.
request |
Implements ignivault.ApiClient.Auth.IAuthApiClient.
Definition at line 155 of file AuthApiClient.cs.
|
inline |
Logs in a user with 2FA code after initial login indicates 2FA is required.
request |
Implements ignivault.ApiClient.Auth.IAuthApiClient.
Definition at line 120 of file AuthApiClient.cs.
|
inline |
Logs in a user with the provided credentials.
request |
Implements ignivault.ApiClient.Auth.IAuthApiClient.
Definition at line 94 of file AuthApiClient.cs.
|
inline |
Logs out the current user by clearing the stored authentication token.
Implements ignivault.ApiClient.Auth.IAuthApiClient.
Definition at line 112 of file AuthApiClient.cs.
|
inline |
Registers a new user with the provided registration details.
request |
Implements ignivault.ApiClient.Auth.IAuthApiClient.
Definition at line 87 of file AuthApiClient.cs.
|
inline |
Resets the user's password using the token and new password provided.
request |
Implements ignivault.ApiClient.Auth.IAuthApiClient.
Definition at line 162 of file AuthApiClient.cs.
|
inline |
Verifies the 2FA code provided by the user to complete the 2FA setup process.
request |
Implements ignivault.ApiClient.Auth.IAuthApiClient.
Definition at line 144 of file AuthApiClient.cs.
Func<Task>? ignivault.ApiClient.Auth.AuthApiClient.OnLoginSuccess |
Definition at line 76 of file AuthApiClient.cs.
Func<Task>? ignivault.ApiClient.Auth.AuthApiClient.OnLogout |
Definition at line 77 of file AuthApiClient.cs.