forked from aws/aws-lambda-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CognitoDefineAuthChallengeResponse.cs
37 lines (34 loc) · 1.41 KB
/
CognitoDefineAuthChallengeResponse.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
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>
public class CognitoDefineAuthChallengeResponse : CognitoTriggerResponse
{
/// <summary>
/// A string containing the name of the next challenge. If you want to present a new challenge to your user, specify the challenge name here.
/// </summary>
[DataMember(Name = "challengeName")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("challengeName")]
#endif
public string ChallengeName { get; set; }
/// <summary>
/// Set to true if you determine that the user has been sufficiently authenticated by completing the challenges, or false otherwise.
/// </summary>
[DataMember(Name = "issueTokens")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("issueTokens")]
#endif
public bool IssueTokens { get; set; }
/// <summary>
/// Set to true if you want to terminate the current authentication process, or false otherwise.
/// </summary>
[DataMember(Name = "failAuthentication")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("failAuthentication")]
#endif
public bool FailAuthentication { get; set; }
}
}