microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Cards/OAuthCard.cs
33lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | |
| 6 | namespace Microsoft.Teams.Api.Cards; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// A card representing a request to perform a sign in via OAuth |
| 10 | /// </summary> |
| 11 | public class OAuthCard : Card |
| 12 | { |
| 13 | /// <summary> |
| 14 | /// The name of the registered connection |
| 15 | /// </summary> |
| 16 | [JsonPropertyName("connectionName")] |
| 17 | [JsonPropertyOrder(4)] |
| 18 | public string? ConnectionName { get; set; } |
| 19 | |
| 20 | /// <summary> |
| 21 | /// The token exchange resource for single sign on |
| 22 | /// </summary> |
| 23 | [JsonPropertyName("tokenExchangeResource")] |
| 24 | [JsonPropertyOrder(5)] |
| 25 | public TokenExchange.Resource? TokenExchangeResource { get; set; } |
| 26 | |
| 27 | /// <summary> |
| 28 | /// The token for directly post a token to token service |
| 29 | /// </summary> |
| 30 | [JsonPropertyName("tokenPostResource")] |
| 31 | [JsonPropertyOrder(6)] |
| 32 | public Token.PostResource? TokenPostResource { get; set; } |
| 33 | } |