-
Notifications
You must be signed in to change notification settings - Fork 481
/
Copy pathChallengeResultElement.cs
38 lines (35 loc) · 1.39 KB
/
ChallengeResultElement.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Runtime.Serialization;
namespace Amazon.Lambda.CognitoEvents
{
/// <summary>
/// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-define-auth-challenge.html
/// </summary>
[DataContract]
public class ChallengeResultElement
{
/// <summary>
/// The challenge type.One of: CUSTOM_CHALLENGE, SRP_A, PASSWORD_VERIFIER, SMS_MFA, DEVICE_SRP_AUTH, DEVICE_PASSWORD_VERIFIER, or ADMIN_NO_SRP_AUTH.
/// </summary>
[DataMember(Name = "challengeName")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("challengeName")]
# endif
public string ChallengeName { get; set; }
/// <summary>
/// Set to true if the user successfully completed the challenge, or false otherwise.
/// </summary>
[DataMember(Name = "challengeResult")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("challengeResult")]
# endif
public bool ChallengeResult { get; set; }
/// <summary>
/// Your name for the custom challenge.Used only if challengeName is CUSTOM_CHALLENGE.
/// </summary>
[DataMember(Name = "challengeMetadata")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("challengeMetadata")]
# endif
public string ChallengeMetadata { get; set; }
}
}