-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
505 additions
and
181 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/Nager.Authentication.Abstraction/Models/AuthenticationResult.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,8 @@ | ||
namespace Nager.Authentication.Abstraction.Models | ||
{ | ||
public class AuthenticationResult | ||
{ | ||
public AuthenticationStatus Status { get; set; } | ||
public string MfaIdentifier { get; set; } | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/Nager.Authentication.Abstraction/Models/MfaActivationResult.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,33 @@ | ||
namespace Nager.Authentication.Abstraction.Models | ||
{ | ||
/// <summary> | ||
/// Mfa Activation Result | ||
/// </summary> | ||
public enum MfaActivationResult | ||
{ | ||
/// <summary> | ||
/// MFA activation was successful | ||
/// </summary> | ||
Success, | ||
|
||
/// <summary> | ||
/// MFA activation failed | ||
/// </summary> | ||
Failed, | ||
|
||
/// <summary> | ||
/// MFA is already activated | ||
/// </summary> | ||
AlreadyActive, | ||
|
||
/// <summary> | ||
/// The provided authentication code is invalid | ||
/// </summary> | ||
InvalidCode, | ||
|
||
/// <summary> | ||
/// The user could not be found | ||
/// </summary> | ||
UserNotFound | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/Nager.Authentication.Abstraction/Models/MfaDeactivationResult.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,33 @@ | ||
namespace Nager.Authentication.Abstraction.Models | ||
{ | ||
/// <summary> | ||
/// Mfa Deactivation Result | ||
/// </summary> | ||
public enum MfaDeactivationResult | ||
{ | ||
/// <summary> | ||
/// MFA activation was successful | ||
/// </summary> | ||
Success, | ||
|
||
/// <summary> | ||
/// MFA activation failed | ||
/// </summary> | ||
Failed, | ||
|
||
/// <summary> | ||
/// MFA was not active | ||
/// </summary> | ||
NotActive, | ||
|
||
/// <summary> | ||
/// The provided authentication code is invalid | ||
/// </summary> | ||
InvalidCode, | ||
|
||
/// <summary> | ||
/// The user could not be found | ||
/// </summary> | ||
UserNotFound | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Nager.Authentication.Abstraction/Models/MfaInformation.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,8 @@ | ||
namespace Nager.Authentication.Abstraction.Models | ||
{ | ||
public class MfaInformation | ||
{ | ||
public bool IsActive { get; set; } | ||
public string ActivationQrCode { get; set; } | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Nager.Authentication.Abstraction/Models/ValidateTokenResult.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,8 @@ | ||
namespace Nager.Authentication.Abstraction.Models | ||
{ | ||
public class ValidateTokenResult | ||
{ | ||
public bool Success { get; set; } | ||
public string EmailAddress { get; set; } | ||
} | ||
} |
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
Oops, something went wrong.