microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Apps/OAuth/OAuthOptions.cs
27lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Teams.Apps.OAuth; |
| 5 | |
| 6 | /// <summary> |
| 7 | /// Options for the OAuth sign-in flow. |
| 8 | /// </summary> |
| 9 | public class OAuthOptions |
| 10 | { |
| 11 | /// <summary> |
| 12 | /// The OAuth connection name to use. If null, uses the default registered connection. |
| 13 | /// When passed to <see cref="OAuthFlowExtensions.AddOAuthFlow(TeamsBotApplication, OAuthOptions)"/>, |
| 14 | /// this is required and identifies the connection. |
| 15 | /// </summary> |
| 16 | public string? ConnectionName { get; set; } |
| 17 | |
| 18 | /// <summary> |
| 19 | /// The text displayed on the OAuthCard. |
| 20 | /// </summary> |
| 21 | public string OAuthCardText { get; set; } = "Please Sign In"; |
| 22 | |
| 23 | /// <summary> |
| 24 | /// The text displayed on the sign-in button. |
| 25 | /// </summary> |
| 26 | public string SignInButtonText { get; set; } = "Sign In"; |
| 27 | } |