-
Notifications
You must be signed in to change notification settings - Fork 486
/
OAuthPromptSettings.cs
56 lines (49 loc) · 2.34 KB
/
OAuthPromptSettings.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Microsoft.Bot.Connector.Authentication;
namespace Microsoft.Bot.Builder.Dialogs
{
/// <summary>
/// Contains settings for an <see cref="OAuthPrompt"/>.
/// </summary>
public class OAuthPromptSettings
{
/// <summary>
/// Gets or sets the OAuthAppCredentials for OAuthPrompt.
/// </summary>
/// <value>The AppCredentials for OAuthPrompt.</value>
public AppCredentials OAuthAppCredentials { get; set; }
/// <summary>
/// Gets or sets the name of the OAuth connection.
/// </summary>
/// <value>The name of the OAuth connection.</value>
public string ConnectionName { get; set; }
/// <summary>
/// Gets or sets the title of the sign-in card.
/// </summary>
/// <value>The title of the sign-in card.</value>
public string Title { get; set; }
/// <summary>
/// Gets or sets any additional text to include in the sign-in card.
/// </summary>
/// <value>Any additional text to include in the sign-in card.</value>
public string Text { get; set; }
/// <summary>
/// Gets or sets the number of milliseconds the prompt waits for the user to authenticate.
/// Default is 900,000 (15 minutes).
/// </summary>
/// <value>The number of milliseconds the prompt waits for the user to authenticate.</value>
public int? Timeout { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the <see cref="OAuthPrompt"/> should end upon
/// receiving an invalid message. Generally the <see cref="OAuthPrompt"/> will ignore
/// incoming messages from the user during the auth flow, if they are not related to the
/// auth flow. This flag enables ending the <see cref="OAuthPrompt"/> rather than
/// ignoring the user's message. Typically, this flag will be set to 'true', but is 'false'
/// by default for backwards compatibility.
/// </summary>
/// <value>True if the <see cref="OAuthPrompt"/> should automatically end upon receiving
/// an invalid message.</value>
public bool EndOnInvalidMessage { get; set; }
}
}