-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from PinguApps/91-create-2fa-challenge-confir…
…mation Implemented create 2fa challenge confirmation
- Loading branch information
Showing
31 changed files
with
662 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/PinguApps.Appwrite.Shared/Requests/Create2faChallengeConfirmationRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Text.Json.Serialization; | ||
using PinguApps.Appwrite.Shared.Requests.Validators; | ||
|
||
namespace PinguApps.Appwrite.Shared.Requests; | ||
|
||
/// <summary> | ||
/// The request for creating a 2fa challenge confirmation | ||
/// </summary> | ||
public class Create2faChallengeConfirmationRequest : BaseRequest<Create2faChallengeConfirmationRequest, Create2faChallengeConfirmationRequestValidator> | ||
{ | ||
/// <summary> | ||
/// ID of the challenge | ||
/// </summary> | ||
[JsonPropertyName("challengeId")] | ||
public string ChallengeId { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Valid verification token | ||
/// </summary> | ||
[JsonPropertyName("otp")] | ||
public string Otp { get; set; } = string.Empty; | ||
} |
Oops, something went wrong.